pub enum ErrorKind {
IOError(Error),
BadBuffer,
RequestDenied,
IdentIsUnavailable,
BadIdent,
OperationTimeoutReached,
}
Expand description
Represents a Socks4 protocol error that can occur when connecting to a destination
Variants§
IOError(Error)
Indicates that an error occured during a native I/O operation, such as writing to or reading from a stream
BadBuffer
Indicates that a bad (wrong, not readable by Socks4) buffer is received
RequestDenied
Indicates that the request (for ex., for connection) is denied
Indicates that the Ident
service
is not available on the server side
BadIdent
Indicates that a bad ident is passed in a payload so that the server refused a connection request
OperationTimeoutReached
Indicates that a timeouts has been reached when connecting to a service
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more