Struct secp256k1::SharedSecret
source · [−]pub struct SharedSecret<D: Digest>(_);
Expand description
Shared secret using ECDH.
Implementations
sourceimpl<D: Digest + Default> SharedSecret<D>
impl<D: Digest + Default> SharedSecret<D>
Trait Implementations
sourceimpl<D: Clone + Digest> Clone for SharedSecret<D> where
D::OutputSize: Clone,
impl<D: Clone + Digest> Clone for SharedSecret<D> where
D::OutputSize: Clone,
sourcefn clone(&self) -> SharedSecret<D>
fn clone(&self) -> SharedSecret<D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<D: Debug + Digest> Debug for SharedSecret<D> where
D::OutputSize: Debug,
impl<D: Debug + Digest> Debug for SharedSecret<D> where
D::OutputSize: Debug,
sourceimpl<D: Digest> Drop for SharedSecret<D>
impl<D: Digest> Drop for SharedSecret<D>
sourcefn eq(&self, other: &SharedSecret<D>) -> bool
fn eq(&self, other: &SharedSecret<D>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SharedSecret<D>) -> bool
fn ne(&self, other: &SharedSecret<D>) -> bool
This method tests for !=
.
impl<D: Eq + Digest> Eq for SharedSecret<D> where
D::OutputSize: Eq,
impl<D: Digest> StructuralEq for SharedSecret<D>
impl<D: Digest> StructuralPartialEq for SharedSecret<D>
Auto Trait Implementations
impl<D> RefUnwindSafe for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Send for SharedSecret<D>
impl<D> Sync for SharedSecret<D>
impl<D> Unpin for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more