Enum open_coroutine_core::constants::PoolState
source · #[repr(C)]pub enum PoolState {
Created,
Running(bool),
Stopping(bool),
Stopped,
}
Expand description
Enums used to describe pool state
Variants§
Created
The pool is created.
Running(bool)
The pool is running, true
means thread mode.
Stopping(bool)
The pool is stopping, true
means thread mode.
Stopped
The pool is stopped.
Trait Implementations§
source§impl PartialEq for PoolState
impl PartialEq for PoolState
impl Copy for PoolState
impl Eq for PoolState
impl StructuralEq for PoolState
impl StructuralPartialEq for PoolState
Auto Trait Implementations§
impl RefUnwindSafe for PoolState
impl Send for PoolState
impl Sync for PoolState
impl Unpin for PoolState
impl UnwindSafe for PoolState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more