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
NXKNNNKNXXNXKXXKNKKKXINIKIX
Methods
impl HandshakePattern[src]
impl HandshakePatternpub fn is_oneway(&self) -> bool[src]
pub fn is_oneway(&self) -> boolIf 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]
pub fn needs_local_static_key(&self, initiator: bool) -> boolWhether this pattern requires a long-term static key.
pub fn need_known_remote_pubkey(&self, initiator: bool) -> bool[src]
pub fn need_known_remote_pubkey(&self, initiator: bool) -> boolWhether this pattern demands a remote public key pre-message.
impl HandshakePattern[src]
impl HandshakePatternTrait Implementations
impl Copy for HandshakePattern[src]
impl Copy for HandshakePatternimpl Clone for HandshakePattern[src]
impl Clone for HandshakePatternfn clone(&self) -> HandshakePattern[src]
fn clone(&self) -> HandshakePatternReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for HandshakePattern[src]
impl PartialEq for HandshakePatternfn eq(&self, other: &HandshakePattern) -> bool[src]
fn eq(&self, other: &HandshakePattern) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for HandshakePattern[src]
impl Debug for HandshakePatternfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for HandshakePattern[src]
impl FromStr for HandshakePatternAuto Trait Implementations
impl Send for HandshakePattern
impl Send for HandshakePatternimpl Sync for HandshakePattern
impl Sync for HandshakePattern