Skip to main content

Module alert

Module alert 

Source
Expand description

Session alert stream: categories, kinds, and the broadcast surface. Alert/event system for push-based notifications.

Consumers subscribe to a broadcast channel of Alert events, optionally filtered by AlertCategory bitmask at both session and per-subscriber level.

Structs§

Alert
A timestamped event from the session or a torrent.
AlertCategory
Bitmask categories for filtering alerts.
AlertStream
A filtered view of the alert broadcast channel.

Enums§

AlertKind
The specific event that occurred.

Functions§

post_alert
Fire an alert if its category passes the session-level mask.