Struct rustls::PrivateKey [−][src]
Expand description
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.
Tuple Fields
0: Vec<u8>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations
Mutably borrows from an owned value. Read more