pub struct Login { /* private fields */ }Expand description
Simple implementation of AUTH LOGIN for smtp.
Implementations§
Source§impl Login
impl Login
Sourcepub fn new(username: &str, password: &str) -> Login
pub fn new(username: &str, password: &str) -> Login
Create a new auth login command based on username and password.
Sourcepub fn from_base64(username: String, password: String) -> Login
pub fn from_base64(username: String, password: String) -> Login
Create a new auth login command based on base64 encoded username and password.
Sourcepub fn base64_username(&self) -> &str
pub fn base64_username(&self) -> &str
Returns the username contained in the Login command.
Trait Implementations§
Source§impl Cmd for Login
impl Cmd for Login
Source§fn check_cmd_availability(
&self,
caps: Option<&EhloData>,
) -> Result<(), MissingCapabilities>
fn check_cmd_availability( &self, caps: Option<&EhloData>, ) -> Result<(), MissingCapabilities>
This method is used to verify if the command can be used
for a given connection
Auto Trait Implementations§
impl Freeze for Login
impl RefUnwindSafe for Login
impl Send for Login
impl Sync for Login
impl Unpin for Login
impl UnsafeUnpin for Login
impl UnwindSafe for Login
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