pub enum SpoolLifecycle {
Shelved,
Loaded {
tool: i64,
},
Retired {
at: Timestamp,
},
}Expand description
Where a spool is in its life.
One state rather than a loaded tool beside a retirement instant, because a retired spool is on no tool: retiring a loaded spool takes it off.
Variants§
Shelved
Registered, and loaded on no tool.
Loaded
Loaded on one tool.
Retired
Retired: it takes no further command, and is on no tool.
Trait Implementations§
Source§impl Clone for SpoolLifecycle
impl Clone for SpoolLifecycle
Source§impl Debug for SpoolLifecycle
impl Debug for SpoolLifecycle
Source§impl<'de> Deserialize<'de> for SpoolLifecycle
impl<'de> Deserialize<'de> for SpoolLifecycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpoolLifecycle
impl PartialEq for SpoolLifecycle
Source§impl Serialize for SpoolLifecycle
impl Serialize for SpoolLifecycle
impl StructuralPartialEq for SpoolLifecycle
Auto Trait Implementations§
impl Freeze for SpoolLifecycle
impl RefUnwindSafe for SpoolLifecycle
impl Send for SpoolLifecycle
impl Sync for SpoolLifecycle
impl Unpin for SpoolLifecycle
impl UnsafeUnpin for SpoolLifecycle
impl UnwindSafe for SpoolLifecycle
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