Enum tor_cell::Error [−][src]
#[non_exhaustive]
pub enum Error {
BytesErr(Error),
IoErr(Arc<Error>),
InternalError(String),
ChanProto(String),
BadStreamAddress,
CantEncode,
}Expand description
An error type for the tor-cell crate.
This type should probably be split into several. There’s more than one kind of error that can occur while doing something with tor cells.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
InternalError(String)There was a programming error somewhere in the code.
Tuple Fields of InternalError
0: StringChanProto(String)Protocol violation at the channel level
Tuple Fields of ChanProto
0: StringTried to make or use a stream to an invalid destination address.
Tried to construct a message that Tor can’t represent.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more