Struct genawaiter::stack::Shelf
source · pub struct Shelf<Y, R, F: Future>(/* private fields */);
Expand description
This data structure holds the transient state of an executing generator.
It’s called “Shelf”, rather than “State”, to avoid confusion with the
GeneratorState
enum.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Y, R, F> !Freeze for Shelf<Y, R, F>
impl<Y, R, F> !RefUnwindSafe for Shelf<Y, R, F>
impl<Y, R, F> Send for Shelf<Y, R, F>
impl<Y, R, F> !Sync for Shelf<Y, R, F>
impl<Y, R, F> Unpin for Shelf<Y, R, F>
impl<Y, R, F> UnwindSafe for Shelf<Y, R, F>
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