[][src]Struct libzmq::auth::PlainClientCreds

pub struct PlainClientCreds { /* fields omitted */ }

Credentials for a PLAIN client.

Example

use libzmq::auth::*;

let creds = PlainClientCreds::new("user", "pass");

Implementations

impl PlainClientCreds[src]

pub fn new<U, P>(username: U, password: P) -> Self where
    U: Into<String>,
    P: Into<String>, 
[src]

Create a new PlainClientCreds from a username and password.

pub fn username(&self) -> &str[src]

Returns a reference to the username.

pub fn password(&self) -> &str[src]

Returns a reference to the password.

Trait Implementations

impl Clone for PlainClientCreds[src]

impl Debug for PlainClientCreds[src]

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

impl Eq for PlainClientCreds[src]

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

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

impl From<PlainClientCreds> for Mechanism[src]

impl Hash for PlainClientCreds[src]

impl IntoIterator for PlainClientCreds[src]

type Item = Self

The type of the elements being iterated over.

type IntoIter = IntoIter<Self>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a PlainClientCreds[src]

type Item = Self

The type of the elements being iterated over.

type IntoIter = IntoIter<Self>

Which kind of iterator are we turning this into?

impl PartialEq<PlainClientCreds> for PlainClientCreds[src]

impl Serialize for PlainClientCreds[src]

impl StructuralEq for PlainClientCreds[src]

impl StructuralPartialEq for PlainClientCreds[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,