#[repr(u8)]pub enum AuthMethod {
NoAuth = 0,
GssApi = 1,
UserPass = 2,
IanaReserved(u8),
Private(u8),
NoAcceptableMethods = 255,
}
Expand description
A proxy authentication method.
Variants§
NoAuth = 0
No authentication required.
GssApi = 1
GSS API.
UserPass = 2
A username + password authentication.
IanaReserved(u8)
IANA reserved 0x03..=0x7f.
Private(u8)
A private authentication method 0x80..=0xfe.
NoAcceptableMethods = 255
X’FF’ NO ACCEPTABLE METHODS
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a copy of the value. Read more
1.0.0 · 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 AuthMethod
impl Debug for AuthMethod
Source§impl Default for AuthMethod
impl Default for AuthMethod
Source§fn default() -> AuthMethod
fn default() -> AuthMethod
Returns the “default value” for a type. Read more
Source§impl Display for AuthMethod
impl Display for AuthMethod
Source§impl From<&AuthMethod> for u8
impl From<&AuthMethod> for u8
Source§fn from(value: &AuthMethod) -> Self
fn from(value: &AuthMethod) -> Self
Converts to this type from the input type.
Source§impl From<AuthMethod> for u8
impl From<AuthMethod> for u8
Source§fn from(value: AuthMethod) -> Self
fn from(value: AuthMethod) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AuthMethod
impl From<u8> for AuthMethod
Source§impl Hash for AuthMethod
impl Hash for AuthMethod
Source§impl Ord for AuthMethod
impl Ord for AuthMethod
Source§fn cmp(&self, other: &AuthMethod) -> Ordering
fn cmp(&self, other: &AuthMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§impl PartialOrd for AuthMethod
impl PartialOrd for AuthMethod
impl Copy for AuthMethod
impl Eq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)