pub enum Event {
Show 15 variants
MetricsRollup(MetricsRollupData),
MessageDelivered(MessageDeliveredData),
MessageFailed(ReasonRetryData),
MessageDeferred(ReasonRetryData),
MessageRelayed(MessageRelayedData),
RelayPromoted(RelayPromotedData),
RelayDemoted(RelayDemotedData),
RelayDemotedBattery(RelayDemotedBatteryData),
RoutingDecision(RoutingDecisionData),
TransportState(TransportStateData),
DeviceCapability(DeviceCapabilityData),
MlsDecryptionFailed(MlsDecryptionFailedData),
MlsSessionMissing(MlsSessionMissingData),
SessionSummary(SessionSummaryData),
Extension {
ext_name: String,
payload: Value,
},
}Expand description
A classified, schema-validated event ready to route to its hypertable.
One variant per typed raw_* table, plus Event::Extension for any
type the server doesn’t recognise — the forward-compat catchall that
keeps a new SDK event from failing the batch (plan §2.6).
Variants§
MetricsRollup(MetricsRollupData)
MessageDelivered(MessageDeliveredData)
MessageFailed(ReasonRetryData)
MessageDeferred(ReasonRetryData)
MessageRelayed(MessageRelayedData)
RelayPromoted(RelayPromotedData)
RelayDemoted(RelayDemotedData)
RelayDemotedBattery(RelayDemotedBatteryData)
RoutingDecision(RoutingDecisionData)
TransportState(TransportStateData)
DeviceCapability(DeviceCapabilityData)
MlsDecryptionFailed(MlsDecryptionFailedData)
MlsSessionMissing(MlsSessionMissingData)
SessionSummary(SessionSummaryData)
Extension
Unknown type — stored verbatim in raw_extension_events. ext_name
is the wire type string; payload is the untouched data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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