pub enum Socks5CredentialsError {
UsernameTooLong(usize),
PasswordTooLong(usize),
}Available on crate feature
socks5 only.Expand description
Failure building Socks5Credentials.
Variants§
UsernameTooLong(usize)
The username exceeds the 255-byte field limit.
PasswordTooLong(usize)
The password exceeds the 255-byte field limit.
Trait Implementations§
Source§impl Clone for Socks5CredentialsError
impl Clone for Socks5CredentialsError
Source§fn clone(&self) -> Socks5CredentialsError
fn clone(&self) -> Socks5CredentialsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Socks5CredentialsError
impl Debug for Socks5CredentialsError
Source§impl Display for Socks5CredentialsError
impl Display for Socks5CredentialsError
impl Eq for Socks5CredentialsError
Source§impl Error for Socks5CredentialsError
impl Error for Socks5CredentialsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for Socks5CredentialsError
impl PartialEq for Socks5CredentialsError
impl StructuralPartialEq for Socks5CredentialsError
Auto Trait Implementations§
impl Freeze for Socks5CredentialsError
impl RefUnwindSafe for Socks5CredentialsError
impl Send for Socks5CredentialsError
impl Sync for Socks5CredentialsError
impl Unpin for Socks5CredentialsError
impl UnsafeUnpin for Socks5CredentialsError
impl UnwindSafe for Socks5CredentialsError
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