[][src]Struct mail_smtp::auth::Plain

pub struct Plain { /* fields omitted */ }

AUTH PLAIN smtp authentication based on rfc4954/rfc4616

Implementations

impl Plain[src]

pub fn from_username<I1, I2>(
    user: I1,
    password: I2
) -> Result<Plain, NullCodePointError> where
    I1: Into<String> + AsRef<str>,
    I2: Into<String> + AsRef<str>, 
[src]

Create a auth plain command from a given username and password.

pub fn new<I1, I2, I3>(
    authorization_identity: I1,
    authentication_identity: I2,
    password: I3
) -> Result<Plain, NullCodePointError> where
    I1: Into<String> + AsRef<str>,
    I2: Into<String> + AsRef<str>,
    I3: Into<String> + AsRef<str>, 
[src]

Create a auth plain command from a authorization identity a authentication identity and a password.

Most times authorization and authentication identities are the same (and happen to be the username) in which case auth::Plain::from_username can be used.

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

Returns the authorization identity which will be used.

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

Returns the authentication identity which will be used.

Trait Implementations

impl Clone for Plain[src]

impl Cmd for Plain[src]

impl Debug for Plain[src]

Auto Trait Implementations

impl RefUnwindSafe for Plain

impl Send for Plain

impl Sync for Plain

impl Unpin for Plain

impl UnwindSafe for Plain

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

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

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

impl<F, T> HeaderTryInto<T> for F where
    T: HeaderTryFrom<F>, 
[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.