Expand description
§tor-events
Tools for generating a stream of structured events, similar to C tor’s ControlPort.
License: MIT OR Apache-2.0
Modules§
- events
- The TorEventandTorEventKindtypes.
Structs§
- EventReactor 
- A reactor used to forward events to make the event reporting system work.
- TorEventReceiver 
- A receiver for TorEvents emitted by other users of this crate.
Enums§
- ReceiverError 
- An error encountered when trying to receive a TorEvent.
Statics§
- BROADCAST_CAPACITY 
- The size of the internal broadcast channel used to implement event subscription.
Functions§
- broadcast
- Broadcast the given TorEventto any interested subscribers.
- event_has_ subscribers 
- Returns a boolean indicating whether the event kindhas any subscribers (as in, whetherTorEventReceiver::subscribehas been called with that event kind).