Struct tokio_native_tls::native_tls::Certificate [−][src]
pub struct Certificate(_);
An X509 certificate.
Implementations
impl Certificate
[src]
impl Certificate
[src]pub fn from_der(der: &[u8]) -> Result<Certificate, Error>
[src]
Parses a DER-formatted X509 certificate.
pub fn from_pem(pem: &[u8]) -> Result<Certificate, Error>
[src]
Parses a PEM-formatted X509 certificate.
pub fn to_der(&self) -> Result<Vec<u8, Global>, Error>
[src]
Returns the DER-encoded representation of this certificate.
Trait Implementations
impl Clone for Certificate
[src]
impl Clone for Certificate
[src]