#[non_exhaustive]pub enum WorkPart {
Stopping,
Stopped,
}Expand description
Whether the work an enforcement covers is known to have stopped.
§Examples
use stratum_node_core::WorkPart;
assert_eq!(WorkPart::Stopped.as_str(), "stopped");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stopping
A container may still run, or a create’s outcome is unknown. An unreachable runner leaves it here.
Stopped
Every container is shown stopped and no create of unknown outcome remains.
Implementations§
Trait Implementations§
impl Copy for WorkPart
Source§impl<'de> Deserialize<'de> for WorkPart
impl<'de> Deserialize<'de> for WorkPart
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkPart
Source§impl Ord for WorkPart
impl Ord for WorkPart
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WorkPart
impl PartialOrd for WorkPart
impl StructuralPartialEq for WorkPart
Auto Trait Implementations§
impl Forget for WorkPart
impl Freeze for WorkPart
impl Move for WorkPart
impl RefUnwindSafe for WorkPart
impl Send for WorkPart
impl Sync for WorkPart
impl Unpin for WorkPart
impl UnsafeUnpin for WorkPart
impl UnwindSafe for WorkPart
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