pub enum CircClosureReason {
Show 16 variants
None,
TorProtocol,
Internal,
Requested,
Hibernating,
ResourceLimit,
ConnectFailed,
OrIdentity,
OrConnClosed,
Finished,
Timeout,
Destroyed,
NoPath,
NoSuchService,
MeasurementExpired,
IpNowRedundant,
}Expand description
Reason that a circuit is being closed or failed to be established.
Provides detailed information about why a circuit ended.
§Example
use stem_rs::CircClosureReason;
let reason = CircClosureReason::Timeout;
println!("Closure reason: {}", reason); // Prints "TIMEOUT"Variants§
None
No reason given.
TorProtocol
Violation in the Tor protocol.
A relay sent malformed or unexpected data.
Internal
Internal error.
An internal error occurred in Tor.
Requested
Requested by the client via a TRUNCATE command.
The circuit was explicitly closed by the client.
Hibernating
Relay is currently hibernating.
The relay is in low-power mode and not accepting circuits.
ResourceLimit
Relay is out of memory, sockets, or circuit IDs.
The relay has exhausted resources.
ConnectFailed
Unable to contact the relay.
Network connectivity issue to the next hop.
OrIdentity
Relay had the wrong OR identification.
The relay’s identity key didn’t match what was expected.
OrConnClosed
Connection failed after being established.
The OR connection was closed unexpectedly.
Finished
Circuit has expired.
The circuit exceeded MaxCircuitDirtiness lifetime.
Timeout
Circuit construction timed out.
The circuit took too long to build.
Destroyed
Circuit unexpectedly closed.
The circuit was destroyed by a relay.
NoPath
Not enough relays to make a circuit.
Insufficient relays available for path selection.
NoSuchService
Requested hidden service does not exist.
The onion address is invalid or the service is offline.
MeasurementExpired
Same as Timeout but left open for measurement.
Circuit timed out but was kept for build time measurement.
IpNowRedundant
Introduction point is redundant with another circuit.
Another circuit already serves this introduction point.
Trait Implementations§
Source§impl Clone for CircClosureReason
impl Clone for CircClosureReason
Source§fn clone(&self) -> CircClosureReason
fn clone(&self) -> CircClosureReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more