pub enum ServerMessage {
Optneg(OptNeg),
Action(Action),
ModificationAction(ModificationAction),
}
Expand description
Messages sent by the Server
This is used to decode things sent by the server and received by the client.
Variants§
Optneg(OptNeg)
Options received from the server
Action(Action)
Control flow actions requested to be done by the server
ModificationAction(ModificationAction)
Modifications requested by the server to be applied to the mail
Trait Implementations§
Source§impl Debug for ServerMessage
impl Debug for ServerMessage
Source§impl From<Action> for ServerMessage
impl From<Action> for ServerMessage
Source§fn from(v: Action) -> ServerMessage
fn from(v: Action) -> ServerMessage
Converts to this type from the input type.
Source§impl From<ModificationAction> for ServerMessage
impl From<ModificationAction> for ServerMessage
Source§fn from(v: ModificationAction) -> ServerMessage
fn from(v: ModificationAction) -> ServerMessage
Converts to this type from the input type.
Source§impl From<OptNeg> for ServerMessage
impl From<OptNeg> for ServerMessage
Source§fn from(v: OptNeg) -> ServerMessage
fn from(v: OptNeg) -> ServerMessage
Converts to this type from the input type.
Source§impl TryInto<Action> for ServerMessage
impl TryInto<Action> for ServerMessage
Source§impl TryInto<ModificationAction> for ServerMessage
impl TryInto<ModificationAction> for ServerMessage
Source§impl TryInto<OptNeg> for ServerMessage
impl TryInto<OptNeg> for ServerMessage
Source§impl Writable for ServerMessage
impl Writable for ServerMessage
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 ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
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