pub enum TaskOutcome<O> {
Accepted {
output: O,
depth: u8,
},
Disagreed {
answers: Vec<O>,
depth: u8,
},
Failed {
failure: TaskFailure,
depth: u8,
},
}Expand description
What a task run produced, and how deep its chain ended.
Variants§
Accepted
An answer to use.
Disagreed
The votes found no majority, and the profile hands the answers back to ask.
Failed
No answer to use.
Implementations§
Trait Implementations§
Source§impl<O: Clone> Clone for TaskOutcome<O>
impl<O: Clone> Clone for TaskOutcome<O>
Auto Trait Implementations§
impl<O> Freeze for TaskOutcome<O>
impl<O> RefUnwindSafe for TaskOutcome<O>
impl<O> Send for TaskOutcome<O>
impl<O> Sync for TaskOutcome<O>
impl<O> Unpin for TaskOutcome<O>
impl<O> UnsafeUnpin for TaskOutcome<O>
impl<O> UnwindSafe for TaskOutcome<O>
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