pub enum HandshakePattern {
Show 38 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,
}
Expand description

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

Implementations

The equivalent of the ToString trait, but for &'static str.

If the protocol is one-way only

See: http://noiseprotocol.org/noise.html#one-way-patterns

Whether this pattern requires a long-term static key.

Whether this pattern demands a remote public key pre-message.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.