pub enum SecurityDescriptor {
Open,
Wep,
Wpa(WpaDescriptor),
}
Expand description
Description of a wireless network security protocol.
Variants§
Implementations§
Source§impl SecurityDescriptor
impl SecurityDescriptor
Sourcepub const OPEN: Self = SecurityDescriptor::Open
pub const OPEN: Self = SecurityDescriptor::Open
Open (no user authentication nor traffic encryption).
Sourcepub const WEP: Self = SecurityDescriptor::Wep
pub const WEP: Self = SecurityDescriptor::Wep
WEP (trivially insecure; for legacy support only).
This protocol is not configurable beyond the format of credentials used to authenticate. WEP provides no protection and is provided for legacy support only.
Sourcepub const WPA1: Self
pub const WPA1: Self
Legacy WPA (WPA1).
This protocol is not configurable beyond the format of credentials used to authenticate.
Sourcepub const WPA2_PERSONAL: Self
pub const WPA2_PERSONAL: Self
WPA2 Personal.
Describes the personal variant of the WPA2 protocol. This descriptor does not specify a pairwise cipher.
Sourcepub const WPA3_PERSONAL: Self
pub const WPA3_PERSONAL: Self
WPA3 Personal.
Describes the personal variant of the WPA3 protocol. This descriptor does not specify a pairwise cipher.
Sourcepub fn bind(
self,
credentials: Option<BareCredentials>,
) -> Result<SecurityAuthenticator, SecurityError>
pub fn bind( self, credentials: Option<BareCredentials>, ) -> Result<SecurityAuthenticator, SecurityError>
Binds bare credentials to a descriptor to form an authenticator.
A security descriptor only describes a protocol and bare credentials provide authentication data without completely describing a protocol. When compatible, a descriptor and credentials form the components of an authenticator, and this function attempts to form an authenticator by binding these components together.
§Errors
Returns an error if the bare credentials are incompatible with the descriptor.
pub fn is_open(&self) -> bool
pub fn is_wep(&self) -> bool
pub fn is_wpa(&self) -> bool
Trait Implementations§
Source§impl Clone for SecurityDescriptor
impl Clone for SecurityDescriptor
Source§fn clone(&self) -> SecurityDescriptor
fn clone(&self) -> SecurityDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more