Enum Command

Source
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 Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Body> for Command

Source§

fn from(v: Body) -> Command

Converts to this type from the input type.
Source§

impl From<Command> for ClientMessage

Source§

fn from(v: Command) -> ClientMessage

Converts to this type from the input type.
Source§

impl From<Connect> for Command

Source§

fn from(v: Connect) -> Command

Converts to this type from the input type.
Source§

impl From<Data> for Command

Source§

fn from(v: Data) -> Command

Converts to this type from the input type.
Source§

impl From<EndOfBody> for Command

Source§

fn from(v: EndOfBody) -> Command

Converts to this type from the input type.
Source§

impl From<EndOfHeader> for Command

Source§

fn from(v: EndOfHeader) -> Command

Converts to this type from the input type.
Source§

impl From<Header> for Command

Source§

fn from(v: Header) -> Command

Converts to this type from the input type.
Source§

impl From<Helo> for Command

Source§

fn from(v: Helo) -> Command

Converts to this type from the input type.
Source§

impl From<Mail> for Command

Source§

fn from(v: Mail) -> Command

Converts to this type from the input type.
Source§

impl From<Recipient> for Command

Source§

fn from(v: Recipient) -> Command

Converts to this type from the input type.
Source§

impl From<Unknown> for Command

Source§

fn from(v: Unknown) -> Command

Converts to this type from the input type.
Source§

impl TryInto<Body> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Body, <Self as TryInto<Body>>::Error>

Performs the conversion.
Source§

impl TryInto<Command> for ClientMessage

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Command, <Self as TryInto<Command>>::Error>

Performs the conversion.
Source§

impl TryInto<Connect> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Connect, <Self as TryInto<Connect>>::Error>

Performs the conversion.
Source§

impl TryInto<Data> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Data, <Self as TryInto<Data>>::Error>

Performs the conversion.
Source§

impl TryInto<EndOfBody> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<EndOfBody, <Self as TryInto<EndOfBody>>::Error>

Performs the conversion.
Source§

impl TryInto<EndOfHeader> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<EndOfHeader, <Self as TryInto<EndOfHeader>>::Error>

Performs the conversion.
Source§

impl TryInto<Header> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Header, <Self as TryInto<Header>>::Error>

Performs the conversion.
Source§

impl TryInto<Helo> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Helo, <Self as TryInto<Helo>>::Error>

Performs the conversion.
Source§

impl TryInto<Mail> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Mail, <Self as TryInto<Mail>>::Error>

Performs the conversion.
Source§

impl TryInto<Recipient> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Recipient, <Self as TryInto<Recipient>>::Error>

Performs the conversion.
Source§

impl TryInto<Unknown> for Command

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Unknown, <Self as TryInto<Unknown>>::Error>

Performs the conversion.
Source§

impl Writable for Command

Source§

fn write(&self, __enum_dispatch_arg_0: &mut BytesMut)

Write self to the buffer

Source§

fn len(&self) -> usize

Byte-length that would be written if Self::write is called

Source§

fn code(&self) -> u8

The (unique) id code of this item

Source§

fn is_empty(&self) -> bool

Whether a call to Self::write would write something

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.