pub enum Authentication<P = (), E = ()> {
    Personal(P),
    Enterprise(E),
}Expand description
WPA authentication suite.
WPA authentication is divided into two broad suites: WPA Personal and WPA Enterprise. The credentials and mechanisms for each suite differ and both WPA descriptors and authenticators discriminate on this basis.
Variants§
Implementations§
Source§impl<P, E> Authentication<P, E>
 
impl<P, E> Authentication<P, E>
Sourcepub fn into_descriptor(self) -> Authentication<(), ()>
 
pub fn into_descriptor(self) -> Authentication<(), ()>
Converts an Authentication into a descriptor with no payload (the unit type ()). Any
payload (i.e., credentials) are dropped.
Sourcepub fn into_credentials(self) -> Credentials
 
pub fn into_credentials(self) -> Credentials
Converts an Authentication describing a particular WPA version into a general type that
describes credentials used across versions of WPA.
pub fn into_personal(self) -> Option<P>
pub fn into_enterprise(self) -> Option<E>
pub fn is_personal(&self) -> bool
pub fn is_enterprise(&self) -> bool
pub fn as_ref(&self) -> Authentication<&P, &E>
Trait Implementations§
Source§impl<P: Clone, E: Clone> Clone for Authentication<P, E>
 
impl<P: Clone, E: Clone> Clone for Authentication<P, E>
Source§fn clone(&self) -> Authentication<P, E>
 
fn clone(&self) -> Authentication<P, E>
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<P, E> From<Authentication<P, E>> for WpaCredentials
 
impl<P, E> From<Authentication<P, E>> for WpaCredentials
Source§fn from(authentication: Authentication<P, E>) -> Self
 
fn from(authentication: Authentication<P, E>) -> Self
Converts to this type from the input type.
Source§impl From<Authentication<PersonalCredentials, EnterpriseCredentials>> for BareCredentials
Conversion of general WPA credentials into bare credentials.
 
impl From<Authentication<PersonalCredentials, EnterpriseCredentials>> for BareCredentials
Conversion of general WPA credentials into bare credentials.
Source§fn from(credentials: Credentials) -> Self
 
fn from(credentials: Credentials) -> Self
Converts to this type from the input type.
Source§impl From<Wpa1Credentials> for Authentication<Wpa1Credentials, ()>
 
impl From<Wpa1Credentials> for Authentication<Wpa1Credentials, ()>
Source§fn from(credentials: Wpa1Credentials) -> Self
 
fn from(credentials: Wpa1Credentials) -> Self
Converts to this type from the input type.
Source§impl From<Wpa2PersonalCredentials> for Authentication<Wpa2PersonalCredentials, ()>
 
impl From<Wpa2PersonalCredentials> for Authentication<Wpa2PersonalCredentials, ()>
Source§fn from(credentials: Wpa2PersonalCredentials) -> Self
 
fn from(credentials: Wpa2PersonalCredentials) -> Self
Converts to this type from the input type.
Source§impl From<Wpa3PersonalCredentials> for Authentication<Wpa3PersonalCredentials, ()>
 
impl From<Wpa3PersonalCredentials> for Authentication<Wpa3PersonalCredentials, ()>
Source§fn from(credentials: Wpa3PersonalCredentials) -> Self
 
fn from(credentials: Wpa3PersonalCredentials) -> Self
Converts to this type from the input type.
impl<P: Copy, E: Copy> Copy for Authentication<P, E>
impl<P: Eq, E: Eq> Eq for Authentication<P, E>
impl<P, E> StructuralPartialEq for Authentication<P, E>
Auto Trait Implementations§
impl<P, E> Freeze for Authentication<P, E>
impl<P, E> RefUnwindSafe for Authentication<P, E>where
    P: RefUnwindSafe,
    E: RefUnwindSafe,
impl<P, E> Send for Authentication<P, E>
impl<P, E> Sync for Authentication<P, E>
impl<P, E> Unpin for Authentication<P, E>
impl<P, E> UnwindSafe for Authentication<P, E>where
    P: UnwindSafe,
    E: UnwindSafe,
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