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 moreSource§impl Debug for SecurityDescriptor
impl Debug for SecurityDescriptor
Source§impl From<Protocol> for SecurityDescriptor
impl From<Protocol> for SecurityDescriptor
Source§impl From<SecurityDescriptor> for Protocol
impl From<SecurityDescriptor> for Protocol
Source§fn from(descriptor: SecurityDescriptor) -> Self
fn from(descriptor: SecurityDescriptor) -> Self
Source§impl From<Wpa> for SecurityDescriptor
impl From<Wpa> for SecurityDescriptor
Source§fn from(descriptor: WpaDescriptor) -> Self
fn from(descriptor: WpaDescriptor) -> Self
Source§impl Hash for SecurityDescriptor
impl Hash for SecurityDescriptor
Source§impl PartialEq for SecurityDescriptor
impl PartialEq for SecurityDescriptor
impl Copy for SecurityDescriptor
impl Eq for SecurityDescriptor
impl StructuralPartialEq for SecurityDescriptor
Auto Trait Implementations§
impl Freeze for SecurityDescriptor
impl RefUnwindSafe for SecurityDescriptor
impl Send for SecurityDescriptor
impl Sync for SecurityDescriptor
impl Unpin for SecurityDescriptor
impl UnwindSafe for SecurityDescriptor
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
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)
clone_to_uninit
)