#[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)
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.
InternalError(String)
Tuple Fields
0: StringThere was a programming error somewhere in the code.
ChanProto(String)
Tuple Fields
0: StringProtocol violation at the channel level
BadStreamAddress
Tried to make or use a stream to an invalid destination address.
CantEncode
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
