Enum smtp_message::Command
source · [−]pub enum Command<S> {
Show 13 variants
Data,
Ehlo {
hostname: Hostname<S>,
},
Expn {
name: MaybeUtf8<S>,
},
Helo {
hostname: Hostname<S>,
},
Help {
subject: MaybeUtf8<S>,
},
Lhlo {
hostname: Hostname<S>,
},
Mail {
path: Option<Path<S>>,
email: Option<Email<S>>,
params: Parameters<S>,
},
Noop {
string: MaybeUtf8<S>,
},
Quit,
Rcpt {
path: Option<Path<S>>,
email: Email<S>,
params: Parameters<S>,
},
Rset,
Starttls,
Vrfy {
name: MaybeUtf8<S>,
},
}
Variants
Data
DATA
Ehlo
Fields
hostname: Hostname<S>
EHLO
Expn
Fields
name: MaybeUtf8<S>
EXPN
Helo
Fields
hostname: Hostname<S>
HELO
Help
Fields
subject: MaybeUtf8<S>
HELP [
Lhlo
Fields
hostname: Hostname<S>
LHLO
Mail
MAIL FROM:<@ONE,@TWO:JOE@THREE> [SP
Noop
Fields
string: MaybeUtf8<S>
NOOP [
Quit
QUIT
Rcpt
RCPT TO:<@ONE,@TWO:JOE@THREE> [SP <rcpt-parameters]
Rset
RSET
Starttls
STARTTLS
Vrfy
Fields
name: MaybeUtf8<S>
VRFY
Implementations
Trait Implementations
impl<S: Eq> Eq for Command<S>
impl<S> StructuralEq for Command<S>
impl<S> StructuralPartialEq for Command<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Command<S> where
S: RefUnwindSafe,
impl<S> Send for Command<S> where
S: Send,
impl<S> Sync for Command<S> where
S: Sync,
impl<S> Unpin for Command<S> where
S: Unpin,
impl<S> UnwindSafe for Command<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more