pub enum SmtpCommand {
Helo(String),
Ehlo(String),
MailFrom(MailFrom),
RcptTo(RcptTo),
Data(DataCommand),
Quit(QuitCommand),
StartTls,
}Expand description
SMTP command vocabulary.
Variants§
Helo(String)
HELO command.
Ehlo(String)
EHLO command.
MailFrom(MailFrom)
MAIL FROM command.
RcptTo(RcptTo)
RCPT TO command.
Data(DataCommand)
DATA command.
Quit(QuitCommand)
QUIT command.
StartTls
STARTTLS command label.
Trait Implementations§
Source§impl Clone for SmtpCommand
impl Clone for SmtpCommand
Source§fn clone(&self) -> SmtpCommand
fn clone(&self) -> SmtpCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SmtpCommand
impl Debug for SmtpCommand
Source§impl Display for SmtpCommand
impl Display for SmtpCommand
Source§impl PartialEq for SmtpCommand
impl PartialEq for SmtpCommand
Source§fn eq(&self, other: &SmtpCommand) -> bool
fn eq(&self, other: &SmtpCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SmtpCommand
impl StructuralPartialEq for SmtpCommand
Auto Trait Implementations§
impl Freeze for SmtpCommand
impl RefUnwindSafe for SmtpCommand
impl Send for SmtpCommand
impl Sync for SmtpCommand
impl Unpin for SmtpCommand
impl UnsafeUnpin for SmtpCommand
impl UnwindSafe for SmtpCommand
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