#[non_exhaustive]pub enum WepKeyType {
Unknown,
Key,
Passphrase,
}Expand description
The #NMWepKeyType values specify how any WEP keys present in the setting are interpreted. There are no standards governing how to hash the various WEP key/passphrase formats into the actual WEP key. Unfortunately some WEP keys can be interpreted in multiple ways, requiring the setting to specify how to interpret the any WEP keys. For example, the key “732f2d712e4a394a375d366931” is both a valid Hexadecimal WEP key and a WEP passphrase. Further, many ASCII keys are also valid WEP passphrases, but since passphrases and ASCII keys are hashed differently to determine the actual WEP key the type must be specified.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
unknown WEP key type
Key
indicates a hexadecimal or ASCII formatted WEP key. Hex keys are either 10 or 26 hexadecimal characters (ie “5f782f2f5f” or “732f2d712e4a394a375d366931”), while ASCII keys are either 5 or 13 ASCII characters (ie “abcde” or “blahblah99$*1”).
Passphrase
indicates a WEP passphrase (ex “I bought a duck on my way back from the market 235Q&^%^*%”) instead of a hexadecimal or ASCII key. Passphrases are between 8 and 64 characters inclusive and are hashed the actual WEP key using the MD5 hash algorithm.
Trait Implementations§
Source§impl Clone for WepKeyType
impl Clone for WepKeyType
Source§fn clone(&self) -> WepKeyType
fn clone(&self) -> WepKeyType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WepKeyType
impl Debug for WepKeyType
Source§impl From<WepKeyType> for Value
impl From<WepKeyType> for Value
Source§fn from(v: WepKeyType) -> Self
fn from(v: WepKeyType) -> Self
Source§impl<'a> FromValue<'a> for WepKeyType
impl<'a> FromValue<'a> for WepKeyType
Source§type Checker = GenericValueTypeChecker<WepKeyType>
type Checker = GenericValueTypeChecker<WepKeyType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for WepKeyType
impl HasParamSpec for WepKeyType
type ParamSpec = ParamSpecEnum
Source§type SetValue = WepKeyType
type SetValue = WepKeyType
type BuilderFn = fn(&str, WepKeyType) -> ParamSpecEnumBuilder<'_, WepKeyType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for WepKeyType
impl Hash for WepKeyType
Source§impl Ord for WepKeyType
impl Ord for WepKeyType
Source§fn cmp(&self, other: &WepKeyType) -> Ordering
fn cmp(&self, other: &WepKeyType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WepKeyType
impl PartialEq for WepKeyType
Source§impl PartialOrd for WepKeyType
impl PartialOrd for WepKeyType
Source§impl StaticType for WepKeyType
impl StaticType for WepKeyType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for WepKeyType
impl ToValue for WepKeyType
Source§impl ValueType for WepKeyType
impl ValueType for WepKeyType
Source§type Type = WepKeyType
type Type = WepKeyType
Type from. Read moreimpl Copy for WepKeyType
impl Eq for WepKeyType
impl StructuralPartialEq for WepKeyType
Auto Trait Implementations§
impl Freeze for WepKeyType
impl RefUnwindSafe for WepKeyType
impl Send for WepKeyType
impl Sync for WepKeyType
impl Unpin for WepKeyType
impl UnwindSafe for WepKeyType
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§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.