Enum tor_cell::Error [−][src]
#[non_exhaustive] pub enum Error { BytesErr(Error), IoErr(Arc<Error>), InternalError(String), ChanProto(String), BadStreamAddress, }
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
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.
An error that occurred from the io system.
InternalError(String)
There was a programming error somewhere in the code.
ChanProto(String)
Protocol violation at the channel level
Tried to make or use a stream to an invalid destination address.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V