pub enum StartupOutcome {
PrintAdopted,
SessionResumed {
session_name: String,
},
InterventionExpired {
intervention_id: InterventionId,
adjustable: Adjustable,
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
§
intervention_id: InterventionIdThe intervention that had outlived its bound.
§
adjustable: AdjustableWhat it had changed.
§
outcome: InterventionOutcomeWhat became of putting the prior value back.
Trait Implementations§
Source§impl Clone for StartupOutcome
impl Clone for StartupOutcome
Source§fn clone(&self) -> StartupOutcome
fn clone(&self) -> StartupOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 JsonSchema for StartupOutcome
impl JsonSchema for StartupOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StartupOutcome
impl PartialEq for StartupOutcome
Source§impl Sample for StartupOutcome
impl Sample for StartupOutcome
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
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