#[non_exhaustive]pub struct JoinOptions<'a> {
pub auth: JoinAuth,
pub cipher_tkip: bool,
pub cipher_aes: bool,
pub passphrase: &'a [u8],
pub passphrase_is_prehashed: bool,
}Expand description
Options for Control::join.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auth: JoinAuthAuthentication type. Default Wpa2Wpa3.
cipher_tkip: boolEnable TKIP encryption. Default false.
cipher_aes: boolEnable AES encryption. Default true.
passphrase: &'a [u8]Passphrase. Must contain between 8 and 64 bytes for an encrypted network. Default empty.
passphrase_is_prehashed: boolIf false, passphrase is the human-readable passphrase string.
If true, passphrase is the result of applying the PBKDF2 hash to the
passphrase string. This makes it possible to avoid storing unhashed passwords.
Pre-hashed passphrases must contain exactly 32 bytes and are not compatible with WPA3. Default false.
Implementations§
Source§impl<'a> JoinOptions<'a>
impl<'a> JoinOptions<'a>
Trait Implementations§
Source§impl<'a> Clone for JoinOptions<'a>
impl<'a> Clone for JoinOptions<'a>
Source§fn clone(&self) -> JoinOptions<'a>
fn clone(&self) -> JoinOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for JoinOptions<'a>
impl<'a> Debug for JoinOptions<'a>
Source§impl<'a> Default for JoinOptions<'a>
impl<'a> Default for JoinOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for JoinOptions<'a>
impl<'a> RefUnwindSafe for JoinOptions<'a>
impl<'a> Send for JoinOptions<'a>
impl<'a> Sync for JoinOptions<'a>
impl<'a> Unpin for JoinOptions<'a>
impl<'a> UnsafeUnpin for JoinOptions<'a>
impl<'a> UnwindSafe for JoinOptions<'a>
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