pub enum DevCommData<'a> {
Passcode(BasicCommData),
Verifier(VerifierCommData<'a>),
}Expand description
What a device authenticates commissioners with in its basic commissioning window.
Variants§
Passcode(BasicCommData)
The passcode itself: each window gets a verifier computed from it, and the device can show its pairing code and QR code. For development and tests, as the Core spec wants a device with a static passcode to be given the verifier, and the passcode kept out of its reach.
Verifier(VerifierCommData<'a>)
The verifier computed from the passcode at manufacturing.
Implementations§
Source§impl DevCommData<'_>
impl DevCommData<'_>
Sourcepub const fn discriminator(&self) -> u16
pub const fn discriminator(&self) -> u16
The discriminator.
Sourcepub const fn passcode(&self) -> Option<&BasicCommData>
pub const fn passcode(&self) -> Option<&BasicCommData>
The passcode and the discriminator, if the device has its passcode.
Trait Implementations§
Source§impl<'a> Clone for DevCommData<'a>
impl<'a> Clone for DevCommData<'a>
Source§fn clone(&self) -> DevCommData<'a>
fn clone(&self) -> DevCommData<'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 DevCommData<'a>
impl<'a> Debug for DevCommData<'a>
Source§impl From<BasicCommData> for DevCommData<'_>
impl From<BasicCommData> for DevCommData<'_>
Source§fn from(data: BasicCommData) -> DevCommData<'_>
fn from(data: BasicCommData) -> DevCommData<'_>
Converts to this type from the input type.
Source§impl<'a> From<VerifierCommData<'a>> for DevCommData<'a>
impl<'a> From<VerifierCommData<'a>> for DevCommData<'a>
Source§fn from(data: VerifierCommData<'a>) -> DevCommData<'a>
fn from(data: VerifierCommData<'a>) -> DevCommData<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Forget for DevCommData<'a>
impl<'a> Freeze for DevCommData<'a>
impl<'a> Move for DevCommData<'a>
impl<'a> RefUnwindSafe for DevCommData<'a>
impl<'a> Send for DevCommData<'a>
impl<'a> Sync for DevCommData<'a>
impl<'a> Unpin for DevCommData<'a>
impl<'a> UnsafeUnpin for DevCommData<'a>
impl<'a> UnwindSafe for DevCommData<'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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.