Enum tor_dirclient::Error [−][src]
#[non_exhaustive]
pub enum Error {
CompressionBomb,
DirTimeout,
TruncatedHeaders,
HttpStatus(Option<u16>),
ResponseTooLong(usize),
Utf8Encoding(FromUtf8Error),
IoError(Error),
Proto(Error),
CircMgr(Error),
HttparseError(Error),
HttpError(Error),
ContentEncoding(String),
}Expand description
An error originating from the tor-dirclient crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
We received an object with a suspiciously good compression ratio
The directory cache took too long to reply to us.
We got an EOF before we were done with the headers.
Got an HTTP status other than 200
ResponseTooLong(usize)Received a response that was longer than we expected.
Tuple Fields of ResponseTooLong
0: usizeUtf8Encoding(FromUtf8Error)Data received was not UTF-8 encoded.
Tuple Fields of Utf8Encoding
IoError(Error)Io error while reading on connection
Tuple Fields of IoError
0: ErrorProto(Error)A protocol error while launching a stream
Tuple Fields of Proto
0: ErrorCircMgr(Error)Error while getting a circuit
Tuple Fields of CircMgr
0: ErrorHttparseError(Error)Error when parsing http
Tuple Fields of HttparseError
0: ErrorHttpError(Error)Error while creating http request
Tuple Fields of HttpError
0: ErrorContentEncoding(String)Unrecognized content-encoding
Tuple Fields of ContentEncoding
0: StringImplementations
Return true if this error means that the circuit shouldn’t be used for any more directory requests.
Trait Implementations
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