Struct openssl::ssl::SslFiletype
source · [−]pub struct SslFiletype(_);
Expand description
An identifier of the format of a certificate or key file.
Implementations
sourceimpl SslFiletype
impl SslFiletype
sourcepub const PEM: SslFiletype
pub const PEM: SslFiletype
The PEM format.
This corresponds to SSL_FILETYPE_PEM
.
sourcepub const ASN1: SslFiletype
pub const ASN1: SslFiletype
The ASN1 format.
This corresponds to SSL_FILETYPE_ASN1
.
sourcepub fn from_raw(raw: c_int) -> SslFiletype
pub fn from_raw(raw: c_int) -> SslFiletype
Constructs an SslFiletype
from a raw OpenSSL value.
Trait Implementations
sourceimpl Clone for SslFiletype
impl Clone for SslFiletype
sourcefn clone(&self) -> SslFiletype
fn clone(&self) -> SslFiletype
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SslFiletype
Auto Trait Implementations
impl RefUnwindSafe for SslFiletype
impl Send for SslFiletype
impl Sync for SslFiletype
impl Unpin for SslFiletype
impl UnwindSafe for SslFiletype
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more