#[non_exhaustive]pub struct FabricConfig {
pub fabric_id: u64,
pub rcac_id: u64,
pub commissioner_node_id: u64,
pub validity: (MatterTime, MatterTime),
}Expand description
Inputs for creating a new fabric.
#[non_exhaustive]: future fabric-creation knobs (e.g. an explicit IPK or
an ICAC tier) can be added without a semver break. Construct via
FabricConfig::new from outside this crate.
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.fabric_id: u64Matter fabric identifier (spec §6.2.1).
rcac_id: u64RCAC subject DN’s rcac-id value.
commissioner_node_id: u64The stable node ID the controller takes on this fabric.
validity: (MatterTime, MatterTime)(not_before, not_after) validity for the RCAC and commissioner NOC.
Implementations§
Source§impl FabricConfig
impl FabricConfig
Sourcepub fn new(
fabric_id: u64,
rcac_id: u64,
commissioner_node_id: u64,
validity: (MatterTime, MatterTime),
) -> Self
pub fn new( fabric_id: u64, rcac_id: u64, commissioner_node_id: u64, validity: (MatterTime, MatterTime), ) -> Self
Construct a fabric configuration.
This is the supported construction path now that FabricConfig is
#[non_exhaustive]; the public fields remain readable/writable in
place.
Trait Implementations§
Source§impl Clone for FabricConfig
impl Clone for FabricConfig
Source§fn clone(&self) -> FabricConfig
fn clone(&self) -> FabricConfig
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 FabricConfig
impl RefUnwindSafe for FabricConfig
impl Send for FabricConfig
impl Sync for FabricConfig
impl Unpin for FabricConfig
impl UnsafeUnpin for FabricConfig
impl UnwindSafe for FabricConfig
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