Struct rustls::PrivateKey [−][src]
This type contains a private key by value.
The private key must be DER-encoded ASN.1 in either PKCS#8 or PKCS#1 format.
rustls::pemfile::pkcs8_private_keys or rustls::pemfile::rsa_private_keys
could be used to extract private keys from a PEM file in these formats.
Trait Implementations
impl Debug for PrivateKey[src]
impl Debug for PrivateKeyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for PrivateKey[src]
impl Clone for PrivateKeyfn clone(&self) -> PrivateKey[src]
fn clone(&self) -> PrivateKeyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Eq for PrivateKey[src]
impl Eq for PrivateKeyimpl PartialEq for PrivateKey[src]
impl PartialEq for PrivateKeyfn eq(&self, other: &PrivateKey) -> bool[src]
fn eq(&self, other: &PrivateKey) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PrivateKey) -> bool[src]
fn ne(&self, other: &PrivateKey) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for PrivateKey
impl Send for PrivateKeyimpl Sync for PrivateKey
impl Sync for PrivateKey