#[repr(C)]pub struct SharedSecret(/* private fields */);
Expand description
Library-internal representation of an ECDH shared secret
Implementations§
Sourcepub fn new() -> SharedSecret
pub fn new() -> SharedSecret
Create a new (zeroed) signature usable for the FFI interface
Sourcepub unsafe fn blank() -> SharedSecret
pub unsafe fn blank() -> SharedSecret
Create a new (uninitialized) signature usable for the FFI interface
Trait Implementations§
Source§fn clone(&self) -> SharedSecret
fn clone(&self) -> SharedSecret
Returns a copy 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§fn deserialize<D>(d: D) -> Result<SharedSecret, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<SharedSecret, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Creates a new shared secret from a FFI shared secret
Source§fn from(ss: SharedSecret) -> SharedSecret
fn from(ss: SharedSecret) -> SharedSecret
Converts to this type from the input type.
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)