Enum wlan_common::security::wpa::PersonalCredentials
source · pub enum PersonalCredentials {
Psk(Psk),
Passphrase(Passphrase),
}
Expand description
General WPA Personal credentials.
Enumerates credential data used across the family of WPA versions to authenticate with the WPA Personal suite. This is a superset of WPA Personal credentials for each version of WPA.
See Authentication
and the Credentials
type definition.
Variants§
Trait Implementations§
source§impl AsRef<[u8]> for PersonalCredentials
impl AsRef<[u8]> for PersonalCredentials
source§impl Clone for PersonalCredentials
impl Clone for PersonalCredentials
source§fn clone(&self) -> PersonalCredentials
fn clone(&self) -> PersonalCredentials
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 Debug for PersonalCredentials
impl Debug for PersonalCredentials
source§impl From<PersonalCredentials> for Credentials
impl From<PersonalCredentials> for Credentials
source§fn from(personal: PersonalCredentials) -> Self
fn from(personal: PersonalCredentials) -> Self
Converts to this type from the input type.
source§impl From<PersonalCredentials> for WpaCredentials
impl From<PersonalCredentials> for WpaCredentials
source§fn from(credentials: PersonalCredentials) -> Self
fn from(credentials: PersonalCredentials) -> Self
Converts to this type from the input type.
source§impl From<Wpa1Credentials> for PersonalCredentials
impl From<Wpa1Credentials> for PersonalCredentials
source§fn from(credentials: Wpa1Credentials) -> Self
fn from(credentials: Wpa1Credentials) -> Self
Converts to this type from the input type.
source§impl From<Wpa2PersonalCredentials> for PersonalCredentials
impl From<Wpa2PersonalCredentials> for PersonalCredentials
source§fn from(credentials: Wpa2PersonalCredentials) -> Self
fn from(credentials: Wpa2PersonalCredentials) -> Self
Converts to this type from the input type.
source§impl From<Wpa3PersonalCredentials> for PersonalCredentials
impl From<Wpa3PersonalCredentials> for PersonalCredentials
source§fn from(credentials: Wpa3PersonalCredentials) -> Self
fn from(credentials: Wpa3PersonalCredentials) -> Self
Converts to this type from the input type.
source§impl PartialEq for PersonalCredentials
impl PartialEq for PersonalCredentials
source§fn eq(&self, other: &PersonalCredentials) -> bool
fn eq(&self, other: &PersonalCredentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<PersonalCredentials> for Wpa1Credentials
impl TryFrom<PersonalCredentials> for Wpa1Credentials
§type Error = SecurityError
type Error = SecurityError
The type returned in the event of a conversion error.
source§impl TryFrom<PersonalCredentials> for Wpa2PersonalCredentials
impl TryFrom<PersonalCredentials> for Wpa2PersonalCredentials
§type Error = SecurityError
type Error = SecurityError
The type returned in the event of a conversion error.
source§impl TryFrom<PersonalCredentials> for Wpa3PersonalCredentials
impl TryFrom<PersonalCredentials> for Wpa3PersonalCredentials
§type Error = SecurityError
type Error = SecurityError
The type returned in the event of a conversion error.
impl Eq for PersonalCredentials
impl StructuralPartialEq for PersonalCredentials
Auto Trait Implementations§
impl Freeze for PersonalCredentials
impl RefUnwindSafe for PersonalCredentials
impl Send for PersonalCredentials
impl Sync for PersonalCredentials
impl Unpin for PersonalCredentials
impl UnwindSafe for PersonalCredentials
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
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OptionalField for Twhere
T: ?Sized,
impl<T> OptionalField for Twhere
T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)