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

Create a new stop_state in default “running” state.

Check if we are stopped.

Check if we are paused.

Stop the server.

Pause the server (only used in tests).

Resume a paused server (only used in tests).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.