pub enum EventKind {
Show 13 variants
ObicoFailureAlert,
ObicoPrinterNotification,
MalformedExternalEvent,
ActionRequested,
ActionExecuted,
ActionRejected,
InterventionExpired,
SupervisionSessionOpened,
SupervisionSessionClosed,
AgentAssessment,
OperatorAcknowledgement,
PortFailure,
StartupReconciliation,
}Expand description
Which event this is, without its payload.
Every kind here has exactly one EventPayload variant, and the spellings
are the same on the wire.
Variants§
ObicoFailureAlert
Obico reported a print failure.
ObicoPrinterNotification
Obico sent a printer notification.
MalformedExternalEvent
An external body arrived that could not be read.
ActionRequested
An actor asked for an action.
ActionExecuted
An accepted action reached the printer.
ActionRejected
Policy refused an action.
InterventionExpired
A bounded intervention expired.
SupervisionSessionOpened
A supervision session was opened.
SupervisionSessionClosed
A supervision session was closed.
AgentAssessment
The agent wrote down what it made of a turn.
OperatorAcknowledgement
An operator acknowledged an event.
PortFailure
A port failed while an event was being handled.
StartupReconciliation
A supervisor reconciled one thing the store held when it started.
Implementations§
Trait Implementations§
impl Copy for EventKind
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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
impl Eq for EventKind
Source§impl JsonSchema for EventKind
impl JsonSchema for EventKind
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 Ord for EventKind
impl Ord for EventKind
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 EventKind
impl PartialOrd for EventKind
Source§impl Sample for EventKind
impl Sample for EventKind
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
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
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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