#[non_exhaustive]pub struct OpenWindowOpts {
pub timeout_s: u16,
pub iterations: u32,
pub vendor_id: Option<u16>,
pub product_id: Option<u16>,
}Expand description
Options for Node::open_commissioning_window (Task 3).
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.timeout_s: u16How long the window stays open, in seconds.
iterations: u32PBKDF2 iteration count for the generated verifier (≥ 1000).
vendor_id: Option<u16>Device Vendor ID — required to emit a QR code (read it from Basic
Information, or leave None to get only the manual pairing code).
product_id: Option<u16>Device Product ID — pair with vendor_id.
Trait Implementations§
Source§impl Clone for OpenWindowOpts
impl Clone for OpenWindowOpts
Source§fn clone(&self) -> OpenWindowOpts
fn clone(&self) -> OpenWindowOpts
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 Debug for OpenWindowOpts
impl Debug for OpenWindowOpts
Auto Trait Implementations§
impl Freeze for OpenWindowOpts
impl RefUnwindSafe for OpenWindowOpts
impl Send for OpenWindowOpts
impl Sync for OpenWindowOpts
impl Unpin for OpenWindowOpts
impl UnsafeUnpin for OpenWindowOpts
impl UnwindSafe for OpenWindowOpts
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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