pub struct PrivateKey(pub Vec<u8>);Expand description
This type contains a DER-encoded ASN.1 private key in PKCS#8 or PKCS#1 format.
The rustls-pemfile crate can be used to parse a PEM file in these formats.
Tuple Fields§
§0: Vec<u8>Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnsafeUnpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more