Struct snow::params::HandshakeChoice
source · [−]pub struct HandshakeChoice {
pub pattern: HandshakePattern,
pub modifiers: HandshakeModifierList,
}
Expand description
The pattern/modifier combination choice (no primitives specified) for a full noise protocol definition.
Fields
pattern: HandshakePattern
The base pattern itself
modifiers: HandshakeModifierList
The modifier(s) requested for the base pattern
Implementations
Trait Implementations
sourceimpl Clone for HandshakeChoice
impl Clone for HandshakeChoice
sourcefn clone(&self) -> HandshakeChoice
fn clone(&self) -> HandshakeChoice
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 Debug for HandshakeChoice
impl Debug for HandshakeChoice
sourceimpl FromStr for HandshakeChoice
impl FromStr for HandshakeChoice
sourceimpl PartialEq<HandshakeChoice> for HandshakeChoice
impl PartialEq<HandshakeChoice> for HandshakeChoice
sourcefn eq(&self, other: &HandshakeChoice) -> bool
fn eq(&self, other: &HandshakeChoice) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HandshakeChoice) -> bool
fn ne(&self, other: &HandshakeChoice) -> bool
This method tests for !=
.
impl StructuralPartialEq for HandshakeChoice
Auto Trait Implementations
impl RefUnwindSafe for HandshakeChoice
impl Send for HandshakeChoice
impl Sync for HandshakeChoice
impl Unpin for HandshakeChoice
impl UnwindSafe for HandshakeChoice
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