pub enum Command {
Connect(Connect),
Helo(Helo),
Mail(Mail),
Recipient(Recipient),
Header(Header),
EndOfHeader(EndOfHeader),
Data(Data),
Body(Body),
EndOfBody(EndOfBody),
Unknown(Unknown),
}
Expand description
See the respective contents about documentation
Variants§
Connect(Connect)
Helo(Helo)
Mail(Mail)
Recipient(Recipient)
Header(Header)
EndOfHeader(EndOfHeader)
Data(Data)
Body(Body)
EndOfBody(EndOfBody)
Unknown(Unknown)
Trait Implementations§
Source§impl From<Command> for ClientMessage
impl From<Command> for ClientMessage
Source§fn from(v: Command) -> ClientMessage
fn from(v: Command) -> ClientMessage
Converts to this type from the input type.
Source§impl From<EndOfHeader> for Command
impl From<EndOfHeader> for Command
Source§fn from(v: EndOfHeader) -> Command
fn from(v: EndOfHeader) -> Command
Converts to this type from the input type.
Source§impl TryInto<Command> for ClientMessage
impl TryInto<Command> for ClientMessage
Source§impl TryInto<EndOfHeader> for Command
impl TryInto<EndOfHeader> for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more