[][src]Struct ntex_amqp_codec::protocol::SaslInit

pub struct SaslInit {
    pub mechanism: Symbol,
    pub initial_response: Option<Bytes>,
    pub hostname: Option<ByteString>,
}

Fields

mechanism: Symbolinitial_response: Option<Bytes>hostname: Option<ByteString>

Implementations

impl SaslInit[src]

pub fn mechanism(&self) -> &Symbol[src]

pub fn initial_response(&self) -> Option<&Bytes>[src]

pub fn hostname(&self) -> Option<&ByteString>[src]

impl SaslInit[src]

pub fn prepare_response(authz_id: &str, authn_id: &str, password: &str) -> Bytes[src]

Trait Implementations

impl Clone for SaslInit[src]

impl Debug for SaslInit[src]

impl Encode for SaslInit[src]

impl From<SaslInit> for SaslFrame[src]

impl PartialEq<SaslInit> for SaslInit[src]

impl StructuralPartialEq for SaslInit[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> From<T> for T[src]

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

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>,