#[non_exhaustive]pub struct FabricInfo {
pub fabric_id: u64,
pub commissioner_node_id: u64,
pub node_count: usize,
pub icac_enabled: bool,
}Expand description
Metadata about a fabric the controller has created.
Returned by MatterController::fabrics
so callers can check which fabrics already exist — in particular, before
calling MatterController::create_fabric
on every startup. Since issue #110, create_fabric refuses to create a
second fabric with a fabric_id already present and returns
Error::FabricAlreadyExists instead
of silently duplicating it; fabrics() is how a caller checks first.
#[non_exhaustive]: more fields may be added without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fabric_id: u64Matter fabric identifier (spec §6.2.1).
commissioner_node_id: u64The stable node ID the controller itself takes on this fabric — its
own commissioner operational identity, minted once by
crate::MatterController::create_fabric and reused for every CASE
handshake on this fabric.
node_count: usizeNumber of devices currently commissioned onto this fabric.
icac_enabled: boolWhether this fabric uses a 3-tier RCAC->ICAC->NOC chain (true) or
issues NOCs directly under the RCAC (false, the default from
crate::FabricConfig::new).
Trait Implementations§
Source§impl Clone for FabricInfo
impl Clone for FabricInfo
Source§fn clone(&self) -> FabricInfo
fn clone(&self) -> FabricInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more