[][src]Struct sasl::client::mechanisms::Scram

pub struct Scram<S: ScramProvider> { /* fields omitted */ }

A struct for the SASL SCRAM-* and SCRAM-*-PLUS mechanisms.

Implementations

impl<S: ScramProvider> Scram<S>[src]

pub fn new<N: Into<String>, P: Into<Password>>(
    username: N,
    password: P,
    channel_binding: ChannelBinding
) -> Result<Scram<S>, Error>
[src]

Constructs a new struct for authenticating using the SASL SCRAM-* and SCRAM-*-PLUS mechanisms, depending on the passed channel binding.

It is recommended that instead you use a Credentials struct and turn it into the requested mechanism using from_credentials.

Trait Implementations

impl<S: ScramProvider> Mechanism for Scram<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Scram<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for Scram<S> where
    S: Send
[src]

impl<S> Sync for Scram<S> where
    S: Sync
[src]

impl<S> Unpin for Scram<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for Scram<S> where
    S: UnwindSafe
[src]

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> Same<T> for T

type Output = T

Should always be Self

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.