Struct async_smtp::commands::AuthCommand
source · pub struct AuthCommand { /* private fields */ }
Expand description
AUTH command
Implementations§
source§impl AuthCommand
impl AuthCommand
sourcepub fn new(
mechanism: Mechanism,
credentials: Credentials,
challenge: Option<String>
) -> Result<AuthCommand, Error>
pub fn new( mechanism: Mechanism, credentials: Credentials, challenge: Option<String> ) -> Result<AuthCommand, Error>
Creates an AUTH command (from a challenge if provided)
sourcepub fn new_from_response(
mechanism: Mechanism,
credentials: Credentials,
response: &Response
) -> Result<AuthCommand, Error>
pub fn new_from_response( mechanism: Mechanism, credentials: Credentials, response: &Response ) -> Result<AuthCommand, Error>
Creates an AUTH command from a response that needs to be a valid challenge (with 334 response code)
Trait Implementations§
source§impl Clone for AuthCommand
impl Clone for AuthCommand
source§fn clone(&self) -> AuthCommand
fn clone(&self) -> AuthCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AuthCommand
impl Debug for AuthCommand
source§impl Display for AuthCommand
impl Display for AuthCommand
source§impl PartialEq for AuthCommand
impl PartialEq for AuthCommand
source§fn eq(&self, other: &AuthCommand) -> bool
fn eq(&self, other: &AuthCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AuthCommand
impl StructuralPartialEq for AuthCommand
Auto Trait Implementations§
impl Freeze for AuthCommand
impl RefUnwindSafe for AuthCommand
impl Send for AuthCommand
impl Sync for AuthCommand
impl Unpin for AuthCommand
impl UnwindSafe for AuthCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more