pub enum EffectOutcome {
Succeeded(EffectSucceeded),
Failed(EffectFailed),
}Expand description
The single entry point for the outcome of a kernel-owned pending effect.
Two arms, no third. There is no “succeeded, but…”, no partial result and no per-effect result event of its own — which is what makes “each pending effect accepts exactly one resolution” checkable rather than aspirational.
Variants§
Succeeded(EffectSucceeded)
Failed(EffectFailed)
Implementations§
Source§impl EffectOutcome
impl EffectOutcome
Sourcepub fn success_tag(&self) -> Option<EffectSuccessTag>
pub fn success_tag(&self) -> Option<EffectSuccessTag>
Some(tag) for a success, None for a failure — the failure path is kind-agnostic.
Trait Implementations§
Source§impl Clone for EffectOutcome
impl Clone for EffectOutcome
Source§fn clone(&self) -> EffectOutcome
fn clone(&self) -> EffectOutcome
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 EffectOutcome
impl Debug for EffectOutcome
Source§impl<'de> Deserialize<'de> for EffectOutcome
impl<'de> Deserialize<'de> for EffectOutcome
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 EffectOutcome
impl PartialEq for EffectOutcome
Source§impl Serialize for EffectOutcome
impl Serialize for EffectOutcome
impl StructuralPartialEq for EffectOutcome
Auto Trait Implementations§
impl Freeze for EffectOutcome
impl RefUnwindSafe for EffectOutcome
impl Send for EffectOutcome
impl Sync for EffectOutcome
impl Unpin for EffectOutcome
impl UnsafeUnpin for EffectOutcome
impl UnwindSafe for EffectOutcome
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