Skip to main content

Crate origin_events

Crate origin_events 

Source
Expand description

Typed event bus (ADR-0005).

Events are Rust types. Subscribing is bus.subscribe::<PlatformEvent>(), not bus.on("platform:sync:completed"). A renamed field is a compile error.

Use an event when several independent components may react. If the caller needs a result, call the service directly instead.

Structs§

AccountExpired
AlertRaised
AlertResolved
EventBus
Cloneable handle to the in-process bus. Cloning shares the same channels.
EventStream
A subscription to one event type.
JobFinished
JobProgress
Progress of a running job.
JobStarted
SyncCompleted
SyncFailed
TrayItemSelected
A product-provided tray menu item was selected (G10).

Enums§

PlatformEvent
The platform-level event enum.
PublishError
RecvError
An error returned from the recv function on a Receiver.
TryRecvError
An error returned from the try_recv function on a Receiver.

Traits§

Event
Anything publishable on the EventBus.