pub enum ServerCommand {
Show 15 variants
OptNeg(OptNeg),
Abort(Abort),
Continue(Continue),
Discard(Discard),
Reject(Reject),
Tempfail(Tempfail),
Skip(Skip),
Replycode(Replycode),
AddRecipient(AddRecipient),
DeleteRecipient(DeleteRecipient),
ReplaceBody(ReplaceBody),
AddHeader(AddHeader),
InsertHeader(InsertHeader),
ChangeHeader(ChangeHeader),
Quarantine(Quarantine),
}
Expand description
See the contained variants for more.
Variants§
OptNeg(OptNeg)
Abort(Abort)
Continue(Continue)
Discard(Discard)
Reject(Reject)
Tempfail(Tempfail)
Skip(Skip)
Replycode(Replycode)
AddRecipient(AddRecipient)
DeleteRecipient(DeleteRecipient)
ReplaceBody(ReplaceBody)
AddHeader(AddHeader)
InsertHeader(InsertHeader)
ChangeHeader(ChangeHeader)
Quarantine(Quarantine)
Implementations§
Source§impl ServerCommand
impl ServerCommand
Trait Implementations§
Source§impl Clone for ServerCommand
impl Clone for ServerCommand
Source§fn clone(&self) -> ServerCommand
fn clone(&self) -> ServerCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerCommand
impl Debug for ServerCommand
Source§impl From<Abort> for ServerCommand
impl From<Abort> for ServerCommand
Source§impl From<AddHeader> for ServerCommand
impl From<AddHeader> for ServerCommand
Source§impl From<AddRecipient> for ServerCommand
impl From<AddRecipient> for ServerCommand
Source§fn from(value: AddRecipient) -> Self
fn from(value: AddRecipient) -> Self
Converts to this type from the input type.
Source§impl From<ChangeHeader> for ServerCommand
impl From<ChangeHeader> for ServerCommand
Source§fn from(value: ChangeHeader) -> Self
fn from(value: ChangeHeader) -> Self
Converts to this type from the input type.
Source§impl From<Continue> for ServerCommand
impl From<Continue> for ServerCommand
Source§impl From<DeleteRecipient> for ServerCommand
impl From<DeleteRecipient> for ServerCommand
Source§fn from(value: DeleteRecipient) -> Self
fn from(value: DeleteRecipient) -> Self
Converts to this type from the input type.
Source§impl From<Discard> for ServerCommand
impl From<Discard> for ServerCommand
Source§impl From<InsertHeader> for ServerCommand
impl From<InsertHeader> for ServerCommand
Source§fn from(value: InsertHeader) -> Self
fn from(value: InsertHeader) -> Self
Converts to this type from the input type.
Source§impl From<OptNeg> for ServerCommand
impl From<OptNeg> for ServerCommand
Source§impl From<Quarantine> for ServerCommand
impl From<Quarantine> for ServerCommand
Source§fn from(value: Quarantine) -> Self
fn from(value: Quarantine) -> Self
Converts to this type from the input type.
Source§impl From<Reject> for ServerCommand
impl From<Reject> for ServerCommand
Source§impl From<ReplaceBody> for ServerCommand
impl From<ReplaceBody> for ServerCommand
Source§fn from(value: ReplaceBody) -> Self
fn from(value: ReplaceBody) -> Self
Converts to this type from the input type.
Source§impl From<Replycode> for ServerCommand
impl From<Replycode> for ServerCommand
Source§impl From<Skip> for ServerCommand
impl From<Skip> for ServerCommand
Auto Trait Implementations§
impl Freeze for ServerCommand
impl RefUnwindSafe for ServerCommand
impl Send for ServerCommand
impl Sync for ServerCommand
impl Unpin for ServerCommand
impl UnwindSafe for ServerCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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