Enum bicoro::RaceResult
source · [−]pub enum RaceResult<'a, I, O, A, B> {
Left {
value: A,
remaining: Coroutine<'a, I, O, B>,
},
Right {
value: B,
remaining: Coroutine<'a, I, O, A>,
},
}
Expand description
A result of racing two routines
This is generated by race, and allows you to continue with the ‘losing’ coroutine, and examing the result of the ‘winning’ courtine
Variants
Left
Right
Auto Trait Implementations
impl<'a, I, O, A, B> !RefUnwindSafe for RaceResult<'a, I, O, A, B>
impl<'a, I, O, A, B> !Send for RaceResult<'a, I, O, A, B>
impl<'a, I, O, A, B> !Sync for RaceResult<'a, I, O, A, B>
impl<'a, I, O, A, B> Unpin for RaceResult<'a, I, O, A, B>where
A: Unpin,
B: Unpin,
O: Unpin,
impl<'a, I, O, A, B> !UnwindSafe for RaceResult<'a, I, O, A, B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more