pub struct LocalStaticSecret { /* private fields */ }Implementations§
Source§impl LocalStaticSecret
impl LocalStaticSecret
pub fn random() -> Self
pub fn new(private_key: [u8; 32]) -> Self
pub fn with_peer(self, peer_public_key: [u8; 32]) -> PeerStaticSecret
pub fn private_key(&self) -> &PrivateKey
pub fn public_key(&self) -> &PublicKey
Trait Implementations§
Source§impl Clone for LocalStaticSecret
impl Clone for LocalStaticSecret
Source§fn clone(&self) -> LocalStaticSecret
fn clone(&self) -> LocalStaticSecret
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 LocalStaticSecret
impl RefUnwindSafe for LocalStaticSecret
impl Send for LocalStaticSecret
impl Sync for LocalStaticSecret
impl Unpin for LocalStaticSecret
impl UnwindSafe for LocalStaticSecret
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