Struct quinn_proto::PrivateKey [−][src]
pub struct PrivateKey { /* fields omitted */ }The private key of a TLS certificate to be used by a server
Implementations
impl PrivateKey[src]
impl PrivateKey[src]pub fn from_pem(pem: &[u8]) -> Result<Self, ParseError>[src]
Parse a PEM-formatted private key
let pem = std::fs::read("key.pem").expect("error reading key"); let key = quinn_proto::PrivateKey::from_pem(&pem).expect("error parsing key");
pub fn from_der(der: &[u8]) -> Result<Self, ParseError>[src]
Parse a DER-encoded (binary) private key
Trait Implementations
impl Clone for PrivateKey[src]
impl Clone for PrivateKey[src]fn clone(&self) -> PrivateKey[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl RefUnwindSafe for PrivateKeyimpl Send for PrivateKey
impl Send for PrivateKeyimpl Sync for PrivateKey
impl Sync for PrivateKeyimpl Unpin for PrivateKey
impl Unpin for PrivateKeyimpl UnwindSafe for PrivateKey
impl UnwindSafe for PrivateKeyBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,