Struct snow::params::NoiseParams [−][src]
pub struct NoiseParams { pub name: String, pub base: BaseChoice, pub handshake: HandshakeChoice, pub dh: DHChoice, pub cipher: CipherChoice, pub hash: HashChoice, }
The set of choices (as specified in the Noise spec) that constitute a full protocol definition.
See: Chapter 11: Protocol Names.
Examples
From a string definition:
let params: NoiseParams = "Noise_XX_25519_AESGCM_SHA256".parse().unwrap();
Fields
name: String
base: BaseChoice
handshake: HandshakeChoice
dh: DHChoice
cipher: CipherChoice
hash: HashChoice
Methods
impl NoiseParams
[src]
impl NoiseParams
pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
[src]
pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
Construct a new NoiseParams via specifying enums directly.
Trait Implementations
impl PartialEq for NoiseParams
[src]
impl PartialEq for NoiseParams
fn eq(&self, other: &NoiseParams) -> bool
[src]
fn eq(&self, other: &NoiseParams) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NoiseParams) -> bool
[src]
fn ne(&self, other: &NoiseParams) -> bool
This method tests for !=
.
impl Clone for NoiseParams
[src]
impl Clone for NoiseParams
fn clone(&self) -> NoiseParams
[src]
fn clone(&self) -> NoiseParams
Returns 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 Debug for NoiseParams
[src]
impl Debug for NoiseParams
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for NoiseParams
[src]
impl FromStr for NoiseParams
Auto Trait Implementations
impl Send for NoiseParams
impl Send for NoiseParams
impl Sync for NoiseParams
impl Sync for NoiseParams