pub enum ExecutorState {
Running,
Terminated,
}Expand description
Indicates whether the executor should continue running or terminate.
Returned by the main execution cycle to signal the runtime’s desired state.
Variants§
Running
The executor should continue processing cycles
Terminated
The executor should shut down gracefully (triggered by Control::Terminate)
Implementations§
Source§impl ExecutorState
impl ExecutorState
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Returns true if this is a ExecutorState::Running, otherwise false
Sourcepub fn is_terminated(&self) -> bool
pub fn is_terminated(&self) -> bool
Returns true if this is a ExecutorState::Terminated, otherwise false
Trait Implementations§
Source§impl Clone for ExecutorState
impl Clone for ExecutorState
Source§fn clone(&self) -> ExecutorState
fn clone(&self) -> ExecutorState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutorState
impl Debug for ExecutorState
Source§impl Hash for ExecutorState
impl Hash for ExecutorState
Source§impl PartialEq for ExecutorState
impl PartialEq for ExecutorState
impl Copy for ExecutorState
impl Eq for ExecutorState
impl StructuralPartialEq for ExecutorState
Auto Trait Implementations§
impl Freeze for ExecutorState
impl RefUnwindSafe for ExecutorState
impl Send for ExecutorState
impl Sync for ExecutorState
impl Unpin for ExecutorState
impl UnwindSafe for ExecutorState
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
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.