Enum socks5_protocol::Error [−][src]
pub enum Error { InvalidVersion(u8), TooManyMethods, InvalidHandshake, InvalidCommand(u8), InvalidCommandReply(u8), CommandReply(CommandReply), DomainTooLong(usize), InvalidDomain(Vec<u8>), InvalidAddressType(u8), Io(Error), }
Expand description
Library level Error
.
Variants
InvalidVersion(u8)
Expand description
Invalid version.
Expand description
Too many methods. Max to 255.
Expand description
Invalid handshake.
InvalidCommand(u8)
Expand description
Invalid command.
InvalidCommandReply(u8)
Expand description
Invalid command reply.
CommandReply(CommandReply)
Expand description
Invalid command reply with error.
DomainTooLong(usize)
Expand description
Domain too long.
Expand description
Invalid domain.
InvalidAddressType(u8)
Expand description
Invalid address type.
Io(Error)
Expand description
IO error.
Implementations
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more