Enum snow::params::HandshakePattern
[−]
[src]
pub enum HandshakePattern { N, X, K, NN, NK, NX, XN, XK, XX, KN, KK, KX, IN, IK, IX, }
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
Methods
impl HandshakePattern
[src]
fn is_oneway(&self) -> bool
If the protocol is one-way only
fn needs_local_static_key(&self, initiator: bool) -> bool
Whether this pattern requires a long-term static key.
fn need_known_remote_pubkey(&self, initiator: bool) -> bool
Whether this pattern demands a remote public key pre-message.
impl HandshakePattern
[src]
Trait Implementations
impl Copy for HandshakePattern
[src]
impl Clone for HandshakePattern
[src]
fn clone(&self) -> HandshakePattern
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for HandshakePattern
[src]
fn eq(&self, __arg_0: &HandshakePattern) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.