Skip to main content

GroupKeyManagement

Struct GroupKeyManagement 

Source
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>

Source

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.

Source

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.

Source

pub const fn keys(&self) -> &'a RefCell<GroupKeys<C, K, M>>

The key table this cluster manages, for the message layer to send and receive with.

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.

Source§

const ID: ClusterId = ID

The cluster id this implementation serves.
Source§

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)

§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>

Writes the value of resolved’s attribute under tag. Read more
Source§

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 more
Source§

fn invoke( &self, resolved: &ResolvedCommand<'_>, fields: Option<&[u8]>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<Option<CommandId>, StatusIb>

Runs a command. Read more
Source§

fn data_version(&self, _resolved: &Resolved<'_>) -> Option<u32>

The cluster instance’s data version (§7.10.3), if it tracks one. Read more
Source§

impl<'a, C: Debug + Config, T: Debug + GroupTable, const K: usize, const M: usize> Debug for GroupKeyManagement<'a, C, T, K, M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto 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>
where &'a RefCell<GroupKeys<C, K, M>>: Freeze, &'a T: Freeze,

§

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>
where &'a RefCell<GroupKeys<C, K, M>>: Unpin, &'a T: Unpin,

§

impl<'a, C, T, const K: usize, const M: usize> UnsafeUnpin for GroupKeyManagement<'a, C, T, K, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.