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 NoiseParamspub 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
) -> SelfConstruct a new NoiseParams via specifying enums directly.
Trait Implementations
impl PartialEq for NoiseParams[src]
impl PartialEq for NoiseParamsfn eq(&self, other: &NoiseParams) -> bool[src]
fn eq(&self, other: &NoiseParams) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for NoiseParams[src]
impl Clone for NoiseParamsfn clone(&self) -> NoiseParams[src]
fn clone(&self) -> NoiseParamsReturns 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 NoiseParamsfn 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 NoiseParams[src]
impl FromStr for NoiseParamsAuto Trait Implementations
impl Send for NoiseParams
impl Send for NoiseParamsimpl Sync for NoiseParams
impl Sync for NoiseParams