pub enum EventType {
Show 32 variants
Circ,
Stream,
OrConn,
Bw,
Debug,
Info,
Notice,
Warn,
Err,
NewDesc,
AddrMap,
AuthDir,
DescChanged,
Status,
Guard,
Ns,
StreamBw,
ClientsSeen,
NewConsensus,
BuildTimeoutSet,
Signal,
ConfChanged,
CircMinor,
TransportLaunched,
ConnBw,
CircBw,
CellStats,
HsDesc,
HsDescContent,
NetworkLiveness,
PtLog,
PtStatus,
}Expand description
Types of events that can be subscribed to via the control protocol.
Use with controller::Controller::set_events to subscribe to events.
§Example
use stem_rs::EventType;
let event = EventType::Circ;
println!("Event type: {}", event); // Prints "CIRC"Variants§
Circ
Circuit status changed.
Stream
Stream status changed.
OrConn
OR connection status changed.
Bw
Bandwidth used in the last second.
Debug
Debug-level log message.
Info
Info-level log message.
Notice
Notice-level log message.
Warn
Warning-level log message.
Err
Error-level log message.
NewDesc
New descriptors available.
AddrMap
Address mapping changed.
AuthDir
New descriptors uploaded to us as an authority.
DescChanged
Our descriptor changed.
Status
General status event.
Guard
Guard status changed.
Ns
Network status changed.
StreamBw
Per-stream bandwidth.
ClientsSeen
Periodic client summary (bridge/relay only).
NewConsensus
New consensus available.
BuildTimeoutSet
Circuit build timeout changed.
Signal
Signal received.
ConfChanged
Configuration changed.
CircMinor
Minor circuit event.
TransportLaunched
Pluggable transport launched.
ConnBw
Per-connection bandwidth.
CircBw
Per-circuit bandwidth.
CellStats
Cell statistics.
HsDesc
Hidden service descriptor event.
HsDescContent
Hidden service descriptor content.
NetworkLiveness
Network liveness changed.
PtLog
Pluggable transport log message.
PtStatus
Pluggable transport status.