pub struct CommissionResult {
pub fabric_index: NonZero<u8>,
pub device_node_id: u64,
}Expand description
What Commissioner::commission returns on success.
Also the handoff between phase 1 (commission) and phase 2
(Commissioner::complete_via_case).
Fields§
§fabric_index: NonZero<u8>Fabric slot the device assigned to us. Needed for subsequent
UpdateNOC / RemoveFabric / UpdateFabricLabel invocations.
(Independent of whatever local fabric index the controller
recorded for the same fabric — see Commissioner::fab_idx.)
NonZeroU8 because the Matter Core spec reserves fabric_index=0
for “no fabric” / PASE — a successful NOCResponse carrying a
device-side fabric slot is, by definition, non-zero.
device_node_id: u64Echo of the NodeID the caller supplied to
Commissioner::commission — kept here so the same struct can
be threaded into Commissioner::complete_via_case without the
caller having to plumb it separately.
Trait Implementations§
Source§impl Clone for CommissionResult
impl Clone for CommissionResult
Source§fn clone(&self) -> CommissionResult
fn clone(&self) -> CommissionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CommissionResult
Source§impl Debug for CommissionResult
impl Debug for CommissionResult
impl Eq for CommissionResult
Source§impl PartialEq for CommissionResult
impl PartialEq for CommissionResult
impl StructuralPartialEq for CommissionResult
Auto Trait Implementations§
impl Freeze for CommissionResult
impl RefUnwindSafe for CommissionResult
impl Send for CommissionResult
impl Sync for CommissionResult
impl Unpin for CommissionResult
impl UnsafeUnpin for CommissionResult
impl UnwindSafe for CommissionResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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