pub enum EventKind {
Started {
request: Ref,
},
Claim {
claim: Ref,
},
Diagnostic(Diagnostic),
Trace(Ref),
Chunk {
payload: Ref,
},
EffectRequested {
effect: Ref,
},
EffectResolved {
effect: Ref,
result: Ref,
},
Capture {
effect: Ref,
},
Card {
subject: Ref,
card: Ref,
},
Final(Ref),
Failed(Ref),
Done,
}Expand description
The payload variants an Event can carry.
Variants§
Started
A run started from the given request.
Claim
A claim was asserted.
Diagnostic(Diagnostic)
A diagnostic was emitted.
Trace(Ref)
A trace marker was emitted.
Chunk
A streamed chunk of output.
EffectRequested
An effect was requested.
EffectResolved
An effect was resolved with a result.
Capture
A continuation capture occurred at an effect.
Card
A card was published for a subject.
Final(Ref)
The run produced its final value.
Failed(Ref)
The run failed with an error.
Done
The run finished.
Trait Implementations§
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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