pub enum EventPayload {
Show 13 variants
ObicoFailureAlert(ObicoFailureAlertPayload),
ObicoPrinterNotification(ObicoPrinterNotificationPayload),
MalformedExternalEvent(MalformedExternalEventPayload),
ActionRequested(ActionRequestedPayload),
ActionExecuted(ActionExecutedPayload),
ActionRejected(ActionRejectedPayload),
InterventionExpired(InterventionExpiredPayload),
SupervisionSessionOpened(SupervisionSessionOpenedPayload),
SupervisionSessionClosed(SupervisionSessionClosedPayload),
AgentAssessment(AgentAssessmentPayload),
OperatorAcknowledgement(OperatorAcknowledgementPayload),
PortFailure(PortFailurePayload),
StartupReconciliation(StartupReconciliationPayload),
}Expand description
What an event carries, tagged by the kind it belongs to.
The wire shape is the pair kind and payload, which is why an
EventRecord carries this one value rather than two fields that could
disagree.
Variants§
ObicoFailureAlert(ObicoFailureAlertPayload)
Obico reported a print failure.
ObicoPrinterNotification(ObicoPrinterNotificationPayload)
Obico sent a printer notification.
MalformedExternalEvent(MalformedExternalEventPayload)
An external body arrived that could not be read.
ActionRequested(ActionRequestedPayload)
An actor asked for an action.
ActionExecuted(ActionExecutedPayload)
An accepted action reached the printer.
ActionRejected(ActionRejectedPayload)
Policy refused an action.
InterventionExpired(InterventionExpiredPayload)
A bounded intervention expired.
SupervisionSessionOpened(SupervisionSessionOpenedPayload)
A supervision session was opened.
SupervisionSessionClosed(SupervisionSessionClosedPayload)
A supervision session was closed.
AgentAssessment(AgentAssessmentPayload)
The agent wrote down what it made of a turn.
OperatorAcknowledgement(OperatorAcknowledgementPayload)
An operator acknowledged an event.
PortFailure(PortFailurePayload)
A port failed while an event was being handled.
StartupReconciliation(StartupReconciliationPayload)
A supervisor reconciled one thing the store held when it started.
Implementations§
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
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 EventPayload
impl JsonSchema for EventPayload
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 EventPayload
impl PartialEq for EventPayload
Source§impl Sample for EventPayload
impl Sample for EventPayload
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
Source§impl Serialize for EventPayload
impl Serialize for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
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