Enum tor_circmgr::Error
source ·
[−]#[non_exhaustive]
pub enum Error {
Show 16 variants
NoRelays(String),
NeedConsensus,
PendingFailed,
CircTimeout,
GuardNotUsable,
UsageNotSupported(String),
RequestTimeout,
RequestFailed(RetryError<Box<Error>>),
CircCancelled,
Internal(String),
ChanFailed(Error),
Protocol(Error),
State(Error),
GuardMgr(GuardMgrError),
Guard(PickGuardError),
ExpiredConsensus,
}
Expand description
An error returned while looking up or building a circuit
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
NoRelays(String)
Tuple Fields
0: String
No suitable relays for a request
NeedConsensus
We need to have a consensus directory to build this kind of circuits, and we only got a list of fallbacks.
PendingFailed
We were waiting on a pending circuit, but it didn’t succeed.
CircTimeout
A circuit build took too long to finish.
GuardNotUsable
We started building a circuit on a guard, but later decided not to use that guard.
UsageNotSupported(String)
Tuple Fields
0: String
Tried to take a circuit for a purpose it doesn’t support.
RequestTimeout
A request spent too long waiting for a circuit
RequestFailed(RetryError<Box<Error>>)
Tuple Fields
0: RetryError<Box<Error>>
Unable to get or build a circuit, despite retrying.
CircCancelled
A circuit succeeded, but was cancelled before it could be used.
Circuits can be cancelled either by a call to
retire_all_circuits()
, or by a configuration change that
makes old paths unusable.
Internal(String)
Tuple Fields
0: String
An error caused by a programming issue or a failure in another library that we can’t work around.
ChanFailed(Error)
Tuple Fields
0: Error
Couldn’t get a channel for a circuit.
Protocol(Error)
Tuple Fields
0: Error
Protocol issue while building a circuit.
State(Error)
Tuple Fields
0: Error
Problem loading or storing persistent state.
GuardMgr(GuardMgrError)
Tuple Fields
Problem creating or updating a guard manager.
Guard(PickGuardError)
Tuple Fields
Problem selecting a guard relay.
ExpiredConsensus
We have an expired consensus
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more