#[non_exhaustive]
pub enum Error {
Show 24 variants
BytesErr(Error),
IoErr(Arc<Error>),
CellErr(Error),
MissingKey,
InvalidOutputLength,
NoSuchHop,
InternalError(String),
BadCellAuth,
BadHandshake,
ChanProto(String),
CircProto(String),
CircDestroy(String),
ChannelClosed,
CircuitClosed,
StreamEnded,
IdRangeFull,
CircExtend(&'static str),
BadStreamAddress,
EndReceived(EndReason),
NotConnected,
StreamProto(String),
ChanMismatch(String),
BadConfig(String),
ResolveError(String),
}Expand description
An error type for the tor-proto crate.
This type should probably be split into several. There’s more than one kind of error that can occur while doing something with the Tor protocol.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
BytesErr(Error)
Tuple Fields
0: ErrorAn error that occurred in the tor_bytes crate while decoding an object.
IoErr(Arc<Error>)
An error that occurred from the io system.
CellErr(Error)
Tuple Fields
0: ErrorAn error occurred in the cell-handling layer.
MissingKey
Somebody asked for a key that we didn’t have.
InvalidOutputLength
We tried to produce too much output for some function.
NoSuchHop
We tried to encrypt a message to a hop that wasn’t there.
InternalError(String)
Tuple Fields
0: StringThere was a programming error somewhere in the code.
BadCellAuth
The authentication information on this cell was completely wrong, or the cell was corrupted.
BadHandshake
A circuit-extension handshake failed.
ChanProto(String)
Tuple Fields
0: StringProtocol violation at the channel level
CircProto(String)
Tuple Fields
0: StringProtocol violation at the circuit level
CircDestroy(String)
Tuple Fields
0: StringCircuit destroyed or channel closed.
ChannelClosed
Channel is closed.
CircuitClosed
Circuit is closed.
StreamEnded
Stream has ended.
IdRangeFull
Can’t allocate any more circuit or stream IDs on a channel.
CircExtend(&'static str)
Tuple Fields
0: &'static strCouldn’t extend a circuit.
BadStreamAddress
Tried to make or use a stream to an invalid destination address.
EndReceived(EndReason)
Tuple Fields
0: EndReasonReceived an End cell from the other end of a stream.
NotConnected
Stream was already closed when we tried to use it.
StreamProto(String)
Tuple Fields
0: StringStream protocol violation
ChanMismatch(String)
Tuple Fields
0: StringChannel does not match target
BadConfig(String)
Tuple Fields
0: StringTried to configure an impossible value
ResolveError(String)
Tuple Fields
0: StringRemote DNS lookup failed.
Trait Implementations
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
