pub struct PrivateKey { /* private fields */ }
Expand description
A private key. This key should never be sent over an insecure channel or stored unsecurely.
Trait Implementations§
Source§impl Clone for PrivateKey
impl Clone for PrivateKey
Source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrivateKey
impl Debug for PrivateKey
Source§impl From<&PrivateKey> for StaticSecret
impl From<&PrivateKey> for StaticSecret
Source§fn from(data: &PrivateKey) -> Self
fn from(data: &PrivateKey) -> Self
Converts to this type from the input type.
Source§impl From<PrivateKey> for Vec<u8>
impl From<PrivateKey> for Vec<u8>
Source§fn from(data: PrivateKey) -> Self
fn from(data: PrivateKey) -> Self
Serialize the structure into a Vec<u8>
, for storage, transmission or use in another language.
Source§impl HeaderType for PrivateKey
impl HeaderType for PrivateKey
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin 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