Crate tor_events
source · [−]Expand description
Tools for generating a stream of structured events, similar to C tor’s ControlPort
.
Modules
The TorEvent
and TorEventKind
types.
Structs
A reactor used to forward events to make the event reporting system work.
A receiver for TorEvent
s emitted by other users of this crate.
Enums
An error encountered when trying to receive a TorEvent
.
Statics
The size of the internal broadcast channel used to implement event subscription.
Functions
Broadcast the given TorEvent
to any interested subscribers.
Returns a boolean indicating whether the event kind
has any subscribers (as in,
whether TorEventReceiver::subscribe
has been called with that event kind).