Struct native_tls::Certificate [−][src]
pub struct Certificate(_);
An X509 certificate.
Methods
impl Certificate[src]
impl Certificatepub 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 Certificatefn clone(&self) -> Certificate[src]
fn clone(&self) -> CertificateReturns 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 Certificateimpl Sync for Certificate
impl Sync for Certificate