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]

Formats the value using the given formatter.

impl Clone for PrivateKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for PrivateKey
[src]

impl PartialEq for PrivateKey
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.