pub enum ClientMessage {
Optneg(OptNeg),
Action(Action),
Command(Command),
}
Expand description
Messages sent by the Client
This is used to decode things sent by the client and received by the server.
Variants§
Optneg(OptNeg)
Options received from the client
Action(Action)
Control flow actions requested by the client
Command(Command)
SMTP commands reported by the client
Trait Implementations§
Source§impl Debug for ClientMessage
impl Debug for ClientMessage
Source§impl From<Action> for ClientMessage
impl From<Action> for ClientMessage
Source§fn from(v: Action) -> ClientMessage
fn from(v: Action) -> ClientMessage
Converts to this type from the input type.
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<OptNeg> for ClientMessage
impl From<OptNeg> for ClientMessage
Source§fn from(v: OptNeg) -> ClientMessage
fn from(v: OptNeg) -> ClientMessage
Converts to this type from the input type.
Source§impl TryInto<Action> for ClientMessage
impl TryInto<Action> for ClientMessage
Source§impl TryInto<Command> for ClientMessage
impl TryInto<Command> for ClientMessage
Source§impl TryInto<OptNeg> for ClientMessage
impl TryInto<OptNeg> for ClientMessage
Source§impl Writable for ClientMessage
impl Writable for ClientMessage
Source§fn len(&self) -> usize
fn len(&self) -> usize
Byte-length that would be written if Self::write
is called
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether a call to Self::write
would write something
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
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