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§
- Account
Expired - Alert
Raised - Alert
Resolved - Event
Bus - Cloneable handle to the in-process bus. Cloning shares the same channels.
- Event
Stream - A subscription to one event type.
- JobFinished
- JobProgress
- Progress of a running job.
- JobStarted
- Sync
Completed - Sync
Failed
Enums§
- Platform
Event - The platform-level event enum.
- Publish
Error - Recv
Error - An error returned from the
recvfunction on aReceiver. - TryRecv
Error - An error returned from the
try_recvfunction on aReceiver.