pub struct DHPrivateKey(/* private fields */);Expand description
An X25519 private key.
Implementations§
Source§impl DHPrivateKey
impl DHPrivateKey
pub fn into_bytes(self) -> [u8; 32]
pub fn from_bytes(bytes: [u8; 32]) -> Self
Trait Implementations§
Source§impl Clone for DHPrivateKey
impl Clone for DHPrivateKey
Source§fn clone(&self) -> DHPrivateKey
fn clone(&self) -> DHPrivateKey
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 moreAuto Trait Implementations§
impl Freeze for DHPrivateKey
impl RefUnwindSafe for DHPrivateKey
impl Send for DHPrivateKey
impl Sync for DHPrivateKey
impl Unpin for DHPrivateKey
impl UnsafeUnpin for DHPrivateKey
impl UnwindSafe for DHPrivateKey
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