pub enum GeneratorState<I, R> {
Yielded(I),
Complete(R),
}
Expand description
Emitted state from an async generator.
Variants§
Yielded(I)
The async generator yielded a value.
Complete(R)
The async generator completed with a return value.
Trait Implementations§
impl<I: Eq, R: Eq> Eq for GeneratorState<I, R>
impl<I, R> StructuralPartialEq for GeneratorState<I, R>
Auto Trait Implementations§
impl<I, R> Freeze for GeneratorState<I, R>
impl<I, R> RefUnwindSafe for GeneratorState<I, R>where
I: RefUnwindSafe,
R: RefUnwindSafe,
impl<I, R> Send for GeneratorState<I, R>
impl<I, R> Sync for GeneratorState<I, R>
impl<I, R> Unpin for GeneratorState<I, R>
impl<I, R> UnwindSafe for GeneratorState<I, R>where
I: UnwindSafe,
R: 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