[−][src]Enum snow::params::HandshakePattern
One of the patterns as defined in the Handshake Pattern section.
Variants
N
X
K
NN
NK
NX
XN
XK
XX
KN
KK
KX
IN
IK
IX
NK1
NX1
X1N
X1K
XK1
X1K1
X1X
XX1
X1X1
K1N
K1K
KK1
K1K1
K1X
KX1
K1X1
I1N
I1K
IK1
I1K1
I1X
IX1
I1X1
Methods
impl HandshakePattern
[src]
impl HandshakePattern
[src]
pub fn is_oneway(self) -> bool
[src]
If the protocol is one-way only
See: http://noiseprotocol.org/noise.html#one-way-patterns
pub fn needs_local_static_key(self, initiator: bool) -> bool
[src]
Whether this pattern requires a long-term static key.
pub fn need_known_remote_pubkey(self, initiator: bool) -> bool
[src]
Whether this pattern demands a remote public key pre-message.
Trait Implementations
impl PartialEq<HandshakePattern> for HandshakePattern
[src]
fn eq(&self, other: &HandshakePattern) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for HandshakePattern
[src]
fn clone(&self) -> HandshakePattern
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for HandshakePattern
[src]
impl Debug for HandshakePattern
[src]
impl FromStr for HandshakePattern
[src]
Auto Trait Implementations
impl Send for HandshakePattern
impl Sync for HandshakePattern
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self