pub enum MacroStage {
Connect,
Helo,
Mail,
Rcpt,
Data,
Eoh,
Eom,
}Expand description
The stage for which macros are sent.
Variants§
Connect
The connect stage.
Helo
The helo stage.
The mail stage.
Rcpt
The rcpt stage.
Data
The data stage.
Eoh
The eoh stage.
Eom
The eom stage.
Implementations§
Source§impl MacroStage
impl MacroStage
Sourcepub fn all() -> impl DoubleEndedIterator
pub fn all() -> impl DoubleEndedIterator
Returns an iterator of all macro stages.
Sourcepub fn all_sorted_by_index() -> impl DoubleEndedIterator
pub fn all_sorted_by_index() -> impl DoubleEndedIterator
Returns an iterator of all macro stages, sorted by their index value.
Trait Implementations§
Source§impl Clone for MacroStage
impl Clone for MacroStage
Source§fn clone(&self) -> MacroStage
fn clone(&self) -> MacroStage
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 MacroStage
impl Debug for MacroStage
Source§impl Hash for MacroStage
impl Hash for MacroStage
Source§impl Ord for MacroStage
impl Ord for MacroStage
Source§fn cmp(&self, other: &MacroStage) -> Ordering
fn cmp(&self, other: &MacroStage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MacroStage
impl PartialEq for MacroStage
Source§impl PartialOrd for MacroStage
impl PartialOrd for MacroStage
Source§impl TryFrom<i32> for MacroStage
impl TryFrom<i32> for MacroStage
Source§type Error = TryFromIndexError
type Error = TryFromIndexError
The type returned in the event of a conversion error.
Source§fn try_from(
value: i32,
) -> Result<MacroStage, <MacroStage as TryFrom<i32>>::Error>
fn try_from( value: i32, ) -> Result<MacroStage, <MacroStage as TryFrom<i32>>::Error>
Performs the conversion.
Source§impl TryFrom<u8> for MacroStage
impl TryFrom<u8> for MacroStage
Source§type Error = TryFromByteError
type Error = TryFromByteError
The type returned in the event of a conversion error.
Source§fn try_from(value: u8) -> Result<MacroStage, <MacroStage as TryFrom<u8>>::Error>
fn try_from(value: u8) -> Result<MacroStage, <MacroStage as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for MacroStage
impl Eq for MacroStage
impl StructuralPartialEq for MacroStage
Auto Trait Implementations§
impl Freeze for MacroStage
impl RefUnwindSafe for MacroStage
impl Send for MacroStage
impl Sync for MacroStage
impl Unpin for MacroStage
impl UnwindSafe for MacroStage
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