Action

Enum Action 

Source
pub enum Action {
    Continue(Continue),
    Abort(Abort),
    Discard(Discard),
    Reject(Reject),
    Tempfail(Tempfail),
    Skip(Skip),
    Replycode(Replycode),
    Quit(Quit),
    QuitNc(QuitNc),
}
Expand description

All control-flow actions combined

See the contained variants for more.

Variants§

§

Continue(Continue)

§

Abort(Abort)

§

Discard(Discard)

§

Reject(Reject)

§

Tempfail(Tempfail)

§

Skip(Skip)

§

Replycode(Replycode)

§

Quit(Quit)

§

QuitNc(QuitNc)

Trait Implementations§

Source§

impl Clone for Action

Source§

fn clone(&self) -> Action

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Action

Source§

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

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

impl From<Abort> for Action

Source§

fn from(v: Abort) -> Action

Converts to this type from the input type.
Source§

impl From<Action> for ClientMessage

Source§

fn from(v: Action) -> ClientMessage

Converts to this type from the input type.
Source§

impl From<Action> for ServerMessage

Source§

fn from(v: Action) -> ServerMessage

Converts to this type from the input type.
Source§

impl From<Continue> for Action

Source§

fn from(v: Continue) -> Action

Converts to this type from the input type.
Source§

impl From<Discard> for Action

Source§

fn from(v: Discard) -> Action

Converts to this type from the input type.
Source§

impl From<Quit> for Action

Source§

fn from(v: Quit) -> Action

Converts to this type from the input type.
Source§

impl From<QuitNc> for Action

Source§

fn from(v: QuitNc) -> Action

Converts to this type from the input type.
Source§

impl From<Reject> for Action

Source§

fn from(v: Reject) -> Action

Converts to this type from the input type.
Source§

impl From<Replycode> for Action

Source§

fn from(v: Replycode) -> Action

Converts to this type from the input type.
Source§

impl From<Skip> for Action

Source§

fn from(v: Skip) -> Action

Converts to this type from the input type.
Source§

impl From<Tempfail> for Action

Source§

fn from(v: Tempfail) -> Action

Converts to this type from the input type.
Source§

impl TryInto<Abort> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Action> for ClientMessage

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Action> for ServerMessage

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Continue> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Discard> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Quit> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<QuitNc> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Reject> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Replycode> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Skip> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryInto<Tempfail> for Action

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl Writable for Action

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§

§

impl Freeze for Action

§

impl RefUnwindSafe for Action

§

impl Send for Action

§

impl Sync for Action

§

impl Unpin for Action

§

impl UnwindSafe for Action

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.