#[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: JoinAuth
Authentication type. Default Wpa2Wpa3
.
cipher_tkip: bool
Enable TKIP encryption. Default false.
cipher_aes: bool
Enable AES encryption. Default true.
passphrase: &'a [u8]
Passphrase. Default empty.
passphrase_is_prehashed: bool
If 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.
This is 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 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<'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> 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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)