[−]Struct quinn::CertificateChain
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
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
fn from_iter<T>(iter: T) -> CertificateChain where
T: IntoIterator<Item = Certificate>,
T: IntoIterator<Item = Certificate>,
impl Clone for CertificateChain
fn clone(&self) -> CertificateChain
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Unpin for CertificateChain
impl Sync for CertificateChain
impl Send for CertificateChain
impl UnwindSafe for CertificateChain
impl RefUnwindSafe for CertificateChain
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,