Struct native_tls::Certificate [−][src]
pub struct Certificate(_);
An X509 certificate.
Methods
impl Certificate
[src]
impl Certificate
pub fn from_der(der: &[u8]) -> Result<Certificate>
[src]
pub fn from_der(der: &[u8]) -> Result<Certificate>
Parses a DER-formatted X509 certificate.
pub fn from_pem(der: &[u8]) -> Result<Certificate>
[src]
pub fn from_pem(der: &[u8]) -> Result<Certificate>
Parses a PEM-formatted X509 certificate.
pub fn to_der(&self) -> Result<Vec<u8>>
[src]
pub fn to_der(&self) -> Result<Vec<u8>>
Returns the DER-encoded representation of this certificate.
Trait Implementations
impl Clone for Certificate
[src]
impl Clone for Certificate
fn clone(&self) -> Certificate
[src]
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Sync for Certificate