[−][src]Enum libzmq::auth::Mechanism
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 Eq for Mechanism
[src]
impl PartialEq<Mechanism> for Mechanism
[src]
impl Clone for Mechanism
[src]
fn clone(&self) -> Mechanism
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<&'a PlainClientCreds> for Mechanism
[src]
fn from(creds: &'a PlainClientCreds) -> Self
[src]
impl From<PlainClientCreds> for Mechanism
[src]
fn from(creds: PlainClientCreds) -> Self
[src]
impl<'a> From<&'a CurveClientCreds> for Mechanism
[src]
fn from(creds: &'a CurveClientCreds) -> Self
[src]
impl From<CurveClientCreds> for Mechanism
[src]
fn from(creds: CurveClientCreds) -> Self
[src]
impl<'a> From<&'a CurveServerCreds> for Mechanism
[src]
fn from(creds: &'a CurveServerCreds) -> Self
[src]
impl From<CurveServerCreds> for Mechanism
[src]
fn from(creds: CurveServerCreds) -> Self
[src]
impl<'a> From<&'a Mechanism> for Mechanism
[src]
impl Default for Mechanism
[src]
impl Debug for Mechanism
[src]
impl Hash for Mechanism
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Mechanism
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Mechanism
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,