#[non_exhaustive]pub struct CommissioningWindow {
pub passcode: u32,
pub discriminator: u16,
pub iterations: u32,
pub salt: Vec<u8>,
pub manual_code: String,
pub qr_code: Option<String>,
}Expand description
The result of opening an enhanced commissioning window — everything a second commissioner needs to onboard the device onto its own fabric.
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.passcode: u32The freshly generated 27-bit setup passcode.
discriminator: u16The 12-bit discriminator advertised while the window is open.
iterations: u32PBKDF2 iterations used.
salt: Vec<u8>PBKDF2 salt used.
manual_code: String11-digit manual pairing code (always present).
qr_code: Option<String>MT: QR string — Some only when vendor_id/product_id were supplied.
Trait Implementations§
Source§impl Clone for CommissioningWindow
impl Clone for CommissioningWindow
Source§fn clone(&self) -> CommissioningWindow
fn clone(&self) -> CommissioningWindow
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 moreAuto Trait Implementations§
impl Freeze for CommissioningWindow
impl RefUnwindSafe for CommissioningWindow
impl Send for CommissioningWindow
impl Sync for CommissioningWindow
impl Unpin for CommissioningWindow
impl UnsafeUnpin for CommissioningWindow
impl UnwindSafe for CommissioningWindow
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