pub enum FiberState {
Yielded,
Finished,
}Expand description
Whether a Fiber::resume left the fiber parked or ran it to its end.
Variants§
Yielded
The fiber called yield_now; resume it later.
Finished
The entry closure returned; the fiber is spent.
Trait Implementations§
Source§impl Clone for FiberState
impl Clone for FiberState
impl Copy for FiberState
Source§impl Debug for FiberState
impl Debug for FiberState
impl Eq for FiberState
Source§impl PartialEq for FiberState
impl PartialEq for FiberState
impl StructuralPartialEq for FiberState
Auto Trait Implementations§
impl Freeze for FiberState
impl RefUnwindSafe for FiberState
impl Send for FiberState
impl Sync for FiberState
impl Unpin for FiberState
impl UnsafeUnpin for FiberState
impl UnwindSafe for FiberState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.