Enum wlan_common::security::wpa::Authentication
source · 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 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<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
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.
source§impl<P: PartialEq, E: PartialEq> PartialEq for Authentication<P, E>
impl<P: PartialEq, E: PartialEq> PartialEq for Authentication<P, E>
source§fn eq(&self, other: &Authentication<P, E>) -> bool
fn eq(&self, other: &Authentication<P, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)