pub struct StaticKeypair {
pub private: [u8; 32],
pub public: [u8; 32],
}Expand description
Static keypair for Noise protocol
Fields§
§private: [u8; 32]Private key (32 bytes)
public: [u8; 32]Public key (32 bytes)
Implementations§
Source§impl StaticKeypair
impl StaticKeypair
Trait Implementations§
Source§impl Clone for StaticKeypair
impl Clone for StaticKeypair
Source§fn clone(&self) -> StaticKeypair
fn clone(&self) -> StaticKeypair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StaticKeypair
impl RefUnwindSafe for StaticKeypair
impl Send for StaticKeypair
impl Sync for StaticKeypair
impl Unpin for StaticKeypair
impl UnsafeUnpin for StaticKeypair
impl UnwindSafe for StaticKeypair
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