pub enum StartupOutcome {
PrintAdopted,
SessionResumed {
session_name: String,
},
InterventionExpired {
adjustable: Adjustable,
intervention_id: InterventionId,
outcome: InterventionOutcome,
},
}Expand description
What one restart put back the way it found it.
A supervisor that has been restarted adopts whatever the store holds rather than starting empty, and each of these is one of those adoptions. They are recorded rather than merely done, because a print that carried on across a restart and one that was started again look identical afterwards unless the history says which happened.
Variants§
PrintAdopted
A print left open was adopted as the print this supervisor is watching.
SessionResumed
A session left open was resumed rather than replaced.
InterventionExpired
An intervention already past its expiry was expired on start.
Fields
§
adjustable: AdjustableWhat it had changed.
§
intervention_id: InterventionIdThe intervention that had outlived its bound.
§
outcome: InterventionOutcomeWhat became of putting the prior value back.
Trait Implementations§
Source§impl Clone for StartupOutcome
impl Clone for StartupOutcome
Source§impl Debug for StartupOutcome
impl Debug for StartupOutcome
Source§impl<'de> Deserialize<'de> for StartupOutcome
impl<'de> Deserialize<'de> for StartupOutcome
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 StartupOutcome
impl PartialEq for StartupOutcome
Source§impl Serialize for StartupOutcome
impl Serialize for StartupOutcome
impl StructuralPartialEq for StartupOutcome
Auto Trait Implementations§
impl Freeze for StartupOutcome
impl RefUnwindSafe for StartupOutcome
impl Send for StartupOutcome
impl Sync for StartupOutcome
impl Unpin for StartupOutcome
impl UnsafeUnpin for StartupOutcome
impl UnwindSafe for StartupOutcome
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