[]Struct quinn::CertificateChain

pub struct CertificateChain { /* fields omitted */ }

A chain of signed TLS certificates ending the one to be used by a server

Methods

impl CertificateChain

pub fn from_pem(pem: &[u8]) -> Result<CertificateChain, ParseError>

Parse a PEM-formatted certificate chain

let pem = std::fs::read("fullchain.pem").expect("error reading certificates");
let cert_chain = quinn_proto::crypto::rustls::PrivateKey::from_pem(&pem).expect("error parsing certificates");

pub fn from_certs(
    certs: impl IntoIterator<Item = Certificate>
) -> CertificateChain

Construct a certificate chain from a list of certificates

Trait Implementations

impl Debug for CertificateChain

impl FromIterator<Certificate> for CertificateChain

impl Clone for CertificateChain

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T