[][src]Struct rustls::Certificate

pub struct Certificate(pub Vec<u8>);

This type contains a single certificate by value.

The certificate must be DER-encoded X.509.

rustls::pemfile::certs function can be used to parse a PEM file.

Trait Implementations

impl Codec for Certificate[src]

fn get_encoding(&self) -> Vec<u8>[src]

Convenience function to get the results of encode().

fn read_bytes(bytes: &[u8]) -> Option<Self>[src]

Read one of these from the front of bytes and return it. Read more

impl PartialEq<Certificate> for Certificate[src]

impl AsRef<[u8]> for Certificate[src]

impl Clone for Certificate[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Certificate[src]

impl Debug for Certificate[src]

Auto Trait Implementations

impl Send for Certificate

impl Sync for Certificate

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.