Enum Outcome
#[non_exhaustive]pub enum Outcome {
Ok,
Refused(String),
Failed(FailureKind),
Deferred,
}Expand description
What a listener answered (Traced::Heard), before the point’s
rules judge it: a refusal on a point that is not a request counts as
a failure there.
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.
Ok
It returned Ok in time: its edit counts.
Refused(String)
It refused, with its reason.
Failed(FailureKind)
It failed: an error, a panic, a missed deadline.
Deferred
It is bound to another thread: queued for that thread’s
run_pending, where it is heard.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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