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 PrivateKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PrivateKey
[src]
impl Clone for PrivateKey
fn clone(&self) -> PrivateKey
[src]
fn clone(&self) -> PrivateKey
Returns 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 PrivateKey
impl PartialEq for PrivateKey
[src]
impl PartialEq for PrivateKey
fn eq(&self, other: &PrivateKey) -> bool
[src]
fn eq(&self, other: &PrivateKey) -> bool
This 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) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Sync for PrivateKey