Struct rustls::PrivateKey
[−]
[src]
pub struct PrivateKey(pub Vec<u8>);
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 Clone for PrivateKey[src]
fn clone(&self) -> PrivateKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for PrivateKey[src]
impl PartialEq for PrivateKey[src]
fn eq(&self, __arg_0: &PrivateKey) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &PrivateKey) -> bool
This method tests for !=.