pub enum EventStage<A, B, C> {
Before(A),
During(B),
After(C),
}Expand description
An EventStage is a generic enumeration that represents the three stages of an event
in a system, allowing for the association of a type T with each stage.
The stages are:
Variants§
Implementations§
Source§impl<A, B, C> EventStage<A, B, C>
impl<A, B, C> EventStage<A, B, C>
Source§impl<A, B, C> EventStage<A, B, C>
impl<A, B, C> EventStage<A, B, C>
Trait Implementations§
Source§impl<A: Clone, B: Clone, C: Clone> Clone for EventStage<A, B, C>
impl<A: Clone, B: Clone, C: Clone> Clone for EventStage<A, B, C>
Source§fn clone(&self) -> EventStage<A, B, C>
fn clone(&self) -> EventStage<A, B, C>
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<A, B, C> Default for EventStage<A, B, C>where
A: Default,
impl<A, B, C> Default for EventStage<A, B, C>where
A: Default,
Source§impl<'de, A, B, C> Deserialize<'de> for EventStage<A, B, C>
impl<'de, A, B, C> Deserialize<'de> for EventStage<A, B, C>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_enum, A, B, C> From<&'_enum EventStage<A, B, C>> for Stage
impl<'_enum, A, B, C> From<&'_enum EventStage<A, B, C>> for Stage
Source§fn from(val: &'_enum EventStage<A, B, C>) -> Stage
fn from(val: &'_enum EventStage<A, B, C>) -> Stage
Converts to this type from the input type.
Source§impl<A, B, C> From<EventStage<A, B, C>> for Stage
impl<A, B, C> From<EventStage<A, B, C>> for Stage
Source§fn from(val: EventStage<A, B, C>) -> Stage
fn from(val: EventStage<A, B, C>) -> Stage
Converts to this type from the input type.
Source§impl<A, B, C> IntoDiscriminant for EventStage<A, B, C>
impl<A, B, C> IntoDiscriminant for EventStage<A, B, C>
Source§type Discriminant = Stage
type Discriminant = Stage
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<A: Ord, B: Ord, C: Ord> Ord for EventStage<A, B, C>
impl<A: Ord, B: Ord, C: Ord> Ord for EventStage<A, B, C>
Source§fn cmp(&self, other: &EventStage<A, B, C>) -> Ordering
fn cmp(&self, other: &EventStage<A, B, C>) -> 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<A: PartialOrd, B: PartialOrd, C: PartialOrd> PartialOrd for EventStage<A, B, C>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd> PartialOrd for EventStage<A, B, C>
Source§impl<A, B, C> Serialize for EventStage<A, B, C>
impl<A, B, C> Serialize for EventStage<A, B, C>
impl<A: Copy, B: Copy, C: Copy> Copy for EventStage<A, B, C>
impl<A: Eq, B: Eq, C: Eq> Eq for EventStage<A, B, C>
impl<A, B, C> StructuralPartialEq for EventStage<A, B, C>
Auto Trait Implementations§
impl<A, B, C> Freeze for EventStage<A, B, C>
impl<A, B, C> RefUnwindSafe for EventStage<A, B, C>
impl<A, B, C> Send for EventStage<A, B, C>
impl<A, B, C> Sync for EventStage<A, B, C>
impl<A, B, C> Unpin for EventStage<A, B, C>
impl<A, B, C> UnwindSafe for EventStage<A, B, C>
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