pub trait AccessList: Sealed {
type Access<'b>: AccessControl
where Self: 'b;
// Required methods
fn access<'b>(
&'b self,
node: Node<'b>,
subject: &'b SubjectDescriptor,
) -> Self::Access<'b>;
fn grant_admin(
&self,
fabric: FabricIndex,
subject: NodeId,
ctx: &InteractionContext<'_>,
) -> Result<()>;
fn drain_changes(&self, each: &mut dyn FnMut(FabricIndex, Result<&[u8]>));
}Available on crate feature
rustcrypto only.Expand description
The Access Control cluster, as the runtime reaches it.
Implemented for AccessControl and
nothing else; it exists to keep the list’s four const parameters out of Device.
Required Associated Types§
Sourcetype Access<'b>: AccessControlwhere
Self: 'b,
type Access<'b>: AccessControlwhere
Self: 'b,
The access check for one subject.
Required Methods§
Sourcefn access<'b>(
&'b self,
node: Node<'b>,
subject: &'b SubjectDescriptor,
) -> Self::Access<'b>
fn access<'b>( &'b self, node: Node<'b>, subject: &'b SubjectDescriptor, ) -> Self::Access<'b>
The list, bound to a node and the subject of one interaction.
Sourcefn grant_admin(
&self,
fabric: FabricIndex,
subject: NodeId,
ctx: &InteractionContext<'_>,
) -> Result<()>
fn grant_admin( &self, fabric: FabricIndex, subject: NodeId, ctx: &InteractionContext<'_>, ) -> Result<()>
§11.18.6.8 step 7’s administrator entry, recorded as a change like any other.
Sourcefn drain_changes(&self, each: &mut dyn FnMut(FabricIndex, Result<&[u8]>))
fn drain_changes(&self, each: &mut dyn FnMut(FabricIndex, Result<&[u8]>))
Every change since the last call, each as an encoded AccessControlEntryChanged payload
and the fabric it belongs to (§9.10.9.1).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".