pub struct Onboarding {
pub passcode: u32,
pub discriminator: Discriminator,
pub vendor_id: Option<u16>,
pub product_id: Option<u16>,
pub capabilities: Option<Capabilities>,
pub custom_flow: bool,
}Expand description
What an onboarding payload says about a device.
Fields§
§passcode: u32The setup passcode.
discriminator: DiscriminatorThe discriminator.
vendor_id: Option<u16>Vendor id, if the payload has it.
product_id: Option<u16>Product id, if the payload has it.
capabilities: Option<Capabilities>How the device can be found; None for a manual code, which does not
say, so every way is tried.
custom_flow: boolWhether the device needs a custom or user-intent commissioning flow (a button press, a vendor app) before it can be commissioned.
Implementations§
Trait Implementations§
Source§impl Clone for Onboarding
impl Clone for Onboarding
Source§impl Debug for Onboarding
impl Debug for Onboarding
impl Eq for Onboarding
Source§impl PartialEq for Onboarding
impl PartialEq for Onboarding
Source§impl Serialize for Onboarding
impl Serialize for Onboarding
impl StructuralPartialEq for Onboarding
Auto Trait Implementations§
impl Freeze for Onboarding
impl RefUnwindSafe for Onboarding
impl Send for Onboarding
impl Sync for Onboarding
impl Unpin for Onboarding
impl UnsafeUnpin for Onboarding
impl UnwindSafe for Onboarding
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,
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 more§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§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.
impl<T> Loggable for T
impl<T> MaybeSend for Twhere
T: ?Sized,
impl<T> MaybeSendSync for Twhere
T: ?Sized,
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.