[−][src]Struct mail_smtp::auth::Plain
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]
user: I1,
password: I2
) -> Result<Plain, NullCodePointError> where
I1: Into<String> + AsRef<str>,
I2: Into<String> + AsRef<str>,
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]
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>,
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]
fn check_cmd_availability(
&self,
caps: Option<&EhloData>
) -> Result<(), MissingCapabilities>
[src]
&self,
caps: Option<&EhloData>
) -> Result<(), MissingCapabilities>
fn exec(
self,
con: Io
) -> Box<dyn Future<Item = (Io, Result<Response, LogicError>), Error = Error> + 'static + Send>
[src]
self,
con: Io
) -> Box<dyn Future<Item = (Io, Result<Response, LogicError>), Error = Error> + 'static + Send>
fn boxed(self) -> Box<dyn TypeErasableCmd + 'static + Send> where
Self: 'static,
[src]
Self: 'static,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,