Trait open_coroutine_core::common::StatePool
source · pub trait StatePool: Pool + Named {
// Required methods
fn state(&self) -> PoolState;
fn change_state(&self, state: PoolState) -> PoolState;
// Provided methods
fn running(&self, sync: bool) -> Result<()> { ... }
fn end(&self) -> Result<()> { ... }
}
Expand description
The StatePool
abstraction.
Required Methods§
sourcefn change_state(&self, state: PoolState) -> PoolState
fn change_state(&self, state: PoolState) -> PoolState
Change the state of this pool.