pub struct GroupKeyManagement<'a, C: Config, T: GroupTable, const K: usize = 15, const M: usize = 20> { /* private fields */ }Available on crate feature
rustcrypto only.Expand description
The Group Key Management cluster (§11.2).
K and M size GroupKeys; T is whatever can answer “which endpoints are in this
group”, which is the Groups cluster on a device that has one.
Implementations§
Source§impl<'a, C: Config, T: GroupTable, const K: usize, const M: usize> GroupKeyManagement<'a, C, T, K, M>
impl<'a, C: Config, T: GroupTable, const K: usize, const M: usize> GroupKeyManagement<'a, C, T, K, M>
Sourcepub const fn new(keys: &'a RefCell<GroupKeys<C, K, M>>, table: &'a T) -> Self
pub const fn new(keys: &'a RefCell<GroupKeys<C, K, M>>, table: &'a T) -> Self
A cluster over the node’s group keys and its group membership.
Sourcepub fn conforming(
feature_map: u32,
optional: &Optional<'_>,
) -> Result<Conforming<5, 4, 2, 0>>
pub fn conforming( feature_map: u32, optional: &Optional<'_>, ) -> Result<Conforming<5, 4, 2, 0>>
The descriptor for an instance, derived from the specification’s tables.
Trait Implementations§
Source§impl<C: Config, T: GroupTable, const K: usize, const M: usize> Cluster for GroupKeyManagement<'_, C, T, K, M>
So a tuple of clusters can dispatch to it by id.
impl<C: Config, T: GroupTable, const K: usize, const M: usize> Cluster for GroupKeyManagement<'_, C, T, K, M>
So a tuple of clusters can dispatch to it by id.
Source§impl<C: Config, T: GroupTable, const K: usize, const M: usize> ClusterHandler for GroupKeyManagement<'_, C, T, K, M>
impl<C: Config, T: GroupTable, const K: usize, const M: usize> ClusterHandler for GroupKeyManagement<'_, C, T, K, M>
Source§fn on_lifecycle(&self, event: Lifecycle)
fn on_lifecycle(&self, event: Lifecycle)
§11.2.7.4: a fabric’s group keys go with the fabric. Leaving them behind leaves key material for a fabric this node is no longer on — the IPK included.
Source§fn read(
&self,
resolved: &Resolved<'_>,
ctx: &InteractionContext<'_>,
w: &mut TlvWriter<'_>,
tag: Tag,
) -> Result<(), Status>
fn read( &self, resolved: &Resolved<'_>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<(), Status>
Source§fn write(
&self,
resolved: &Resolved<'_>,
data: &[u8],
op: WriteOp,
ctx: &InteractionContext<'_>,
) -> Result<(), Status>
fn write( &self, resolved: &Resolved<'_>, data: &[u8], op: WriteOp, ctx: &InteractionContext<'_>, ) -> Result<(), Status>
Writes
data — the encoded TLV element, tag included — into the attribute. Read moreAuto Trait Implementations§
impl<'a, C, T, const K: usize = 15, const M: usize = 20> !RefUnwindSafe for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize = 15, const M: usize = 20> !Send for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize = 15, const M: usize = 20> !Sync for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize = 15, const M: usize = 20> !UnwindSafe for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize, const M: usize> Forget for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize, const M: usize> Freeze for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize, const M: usize> Move for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize, const M: usize> Unpin for GroupKeyManagement<'a, C, T, K, M>
impl<'a, C, T, const K: usize, const M: usize> UnsafeUnpin for GroupKeyManagement<'a, C, T, K, M>
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