Enum tor_proto::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 23 variants
BytesErr(Error),
IoErr(Arc<Error>),
CellErr(Error),
MissingKey,
InvalidOutputLength,
NoSuchHop,
InternalError(String),
BadCellAuth,
BadHandshake,
ChanProto(String),
CircProto(String),
CircDestroy(String),
ChannelClosed,
CircuitClosed,
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)An error that occurred in the tor_bytes crate while decoding an object.
Tuple Fields of BytesErr
0: ErrorAn error that occurred from the io system.
CellErr(Error)An error occurred in the cell-handling layer.
Tuple Fields of CellErr
0: ErrorSomebody asked for a key that we didn’t have.
We tried to produce too much output for some function.
We tried to encrypt a message to a hop that wasn’t there.
InternalError(String)There was a programming error somewhere in the code.
Tuple Fields of InternalError
0: StringThe authentication information on this cell was completely wrong, or the cell was corrupted.
A circuit-extension handshake failed.
ChanProto(String)Protocol violation at the channel level
Tuple Fields of ChanProto
0: StringCircProto(String)Protocol violation at the circuit level
Tuple Fields of CircProto
0: StringCircDestroy(String)Circuit destroyed or channel closed.
Tuple Fields of CircDestroy
0: StringChannel is closed.
Circuit is closed.
Can’t allocate any more circuit or stream IDs on a channel.
CircExtend(&'static str)Couldn’t extend a circuit.
Tuple Fields of CircExtend
0: &'static strTried to make or use a stream to an invalid destination address.
EndReceived(EndReason)Received an End cell from the other end of a stream.
Tuple Fields of EndReceived
0: EndReasonStream was already closed when we tried to use it.
StreamProto(String)Stream protocol violation
Tuple Fields of StreamProto
0: StringChanMismatch(String)Channel does not match target
Tuple Fields of ChanMismatch
0: StringBadConfig(String)Tried to configure an impossible value
Tuple Fields of BadConfig
0: StringResolveError(String)Remote DNS lookup failed.
Tuple Fields of ResolveError
0: StringTrait 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