#[non_exhaustive]pub enum EffectEvent {
Requested {
effect_id: EffectId,
},
Started {
effect_id: EffectId,
},
Completed {
effect_id: EffectId,
output: Value,
},
Failed {
effect_id: EffectId,
error: RunError,
},
}Expand description
External-effect facts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Requested
An effect was requested.
Started
Policy allowed the effect to start.
Completed
The effect completed.
Failed
The effect failed.
Trait Implementations§
Source§impl Clone for EffectEvent
impl Clone for EffectEvent
Source§fn clone(&self) -> EffectEvent
fn clone(&self) -> EffectEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EffectEvent
impl Debug for EffectEvent
Source§impl<'de> Deserialize<'de> for EffectEvent
impl<'de> Deserialize<'de> for EffectEvent
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 PartialEq for EffectEvent
impl PartialEq for EffectEvent
Source§impl Serialize for EffectEvent
impl Serialize for EffectEvent
impl StructuralPartialEq for EffectEvent
Auto Trait Implementations§
impl Freeze for EffectEvent
impl RefUnwindSafe for EffectEvent
impl Send for EffectEvent
impl Sync for EffectEvent
impl Unpin for EffectEvent
impl UnsafeUnpin for EffectEvent
impl UnwindSafe for EffectEvent
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