Struct mugle_util::StopState
source · [−]pub struct StopState { /* private fields */ }
Expand description
Global stopped/paused state shared across various subcomponents of Mugle.
“Stopped” allows a clean shutdown of the Mugle server. “Paused” is used in some tests to allow nodes to reach steady state etc.
Implementations
sourceimpl StopState
impl StopState
sourcepub fn is_stopped(&self) -> bool
pub fn is_stopped(&self) -> bool
Check if we are stopped.
Auto Trait Implementations
impl RefUnwindSafe for StopState
impl Send for StopState
impl Sync for StopState
impl Unpin for StopState
impl UnwindSafe for StopState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more