Struct quinn_proto::CertificateChain[][src]

pub struct CertificateChain { /* fields omitted */ }

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

Implementations

impl CertificateChain[src]

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

Parse a PEM-formatted certificate chain

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

pub fn from_certs(certs: impl IntoIterator<Item = Certificate>) -> Self[src]

Construct a certificate chain from a list of certificates

pub fn iter(&self) -> impl Iterator<Item = &Certificate>[src]

An iterator over the certificates in the chain

Trait Implementations

impl Clone for CertificateChain[src]

impl Debug for CertificateChain[src]

impl From<Vec<Certificate, Global>> for CertificateChain[src]

impl FromIterator<Certificate> for CertificateChain[src]

impl IntoIterator for CertificateChain[src]

type Item = Certificate

The type of the elements being iterated over.

type IntoIter = IntoIter<Certificate>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a CertificateChain[src]

type Item = &'a Certificate

The type of the elements being iterated over.

type IntoIter = Iter<'a, Certificate>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,