[][src]Enum libzmq::auth::Mechanism

pub enum Mechanism {
    Null,
    PlainClient(PlainClientCreds),
    PlainServer,
    CurveClient(CurveClientCreds),
    CurveServer(CurveServerCreds),
}

A socket's Mechanism.

The Mechanism is used to configure the authentication and encryption strategy to use between two connected sockets.

By default the Null mechanism is used, meaning there is no attempt authentication nor encryption.

Variants

Null

No encryption or authentication.

A socket using the Null mechanism connect or accept connections from sockets also using the Null mechanism.

PlainClient(PlainClientCreds)

Plain text authentication with no encryption.

A socket using the PlainClient mechanism connects to sockets using the PlainServer mechanism.

PlainServer

Plain text authentication with no encryption.

A socket using the PlainServer mechanism accept connections from sockets using the PlainClient mechanism.

CurveClient(CurveClientCreds)

Secure authentication and encryption using the Curve public-key mechanism.

By default authentication is done using a whitelist of public keys. However, authentication can be disabled.

A socket using the CurveClient mechanism connects to socket using the CurveServer mechanism.

CurveServer(CurveServerCreds)

Secure authentication and encryption using the Curve public-key mechanism.

A socket using the CurveServer mechanism accepts connections from sockets using the CurveClient mechanism.

Trait Implementations

impl PartialEq<Mechanism> for Mechanism[src]

impl Eq for Mechanism[src]

impl Default for Mechanism[src]

impl<'a> From<&'a PlainClientCreds> for Mechanism[src]

impl From<PlainClientCreds> for Mechanism[src]

impl<'a> From<&'a CurveClientCreds> for Mechanism[src]

impl From<CurveClientCreds> for Mechanism[src]

impl<'a> From<&'a CurveServerCreds> for Mechanism[src]

impl From<CurveServerCreds> for Mechanism[src]

impl<'a> From<&'a Mechanism> for Mechanism[src]

impl Clone for Mechanism[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for Mechanism[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Mechanism[src]

impl Serialize for Mechanism[src]

impl<'de> Deserialize<'de> for Mechanism[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]