#[non_exhaustive]pub enum AuthenticationType {
Pap,
Chap,
}Expand description
The type of authentication used for a given session.
More of these might be added in the future, but the variants here are
the only currently supported authentication types with a Client.
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.
Pap
Authentication via the Password Authentication Protocol (PAP).
Chap
Authentication via the Challenge-Authentication Protocol (CHAP).
Trait Implementations§
Source§impl Clone for AuthenticationType
impl Clone for AuthenticationType
Source§fn clone(&self) -> AuthenticationType
fn clone(&self) -> AuthenticationType
Returns a duplicate 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 AuthenticationType
impl Debug for AuthenticationType
Source§impl Hash for AuthenticationType
impl Hash for AuthenticationType
Source§impl PartialEq for AuthenticationType
impl PartialEq for AuthenticationType
impl Copy for AuthenticationType
impl Eq for AuthenticationType
impl StructuralPartialEq for AuthenticationType
Auto Trait Implementations§
impl Freeze for AuthenticationType
impl RefUnwindSafe for AuthenticationType
impl Send for AuthenticationType
impl Sync for AuthenticationType
impl Unpin for AuthenticationType
impl UnwindSafe for AuthenticationType
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