pub enum Outcome<T, E> {
Complete {
result: Result<T, E>,
shared: bool,
},
Canceled,
}Expand description
Result published by the single in-flight computation.
Variants§
Complete
The leader completed the computation.
Canceled
The leader future was dropped before it completed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Outcome<T, E>
impl<T, E> RefUnwindSafe for Outcome<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for Outcome<T, E>
impl<T, E> Sync for Outcome<T, E>
impl<T, E> Unpin for Outcome<T, E>
impl<T, E> UnsafeUnpin for Outcome<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for Outcome<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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