Skip to main content

AccessList

Trait AccessList 

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

Source

type Access<'b>: AccessControl
where Self: 'b,

The access check for one subject.

Required Methods§

Source

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.

Source

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.

Source

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".

Implementors§

Source§

impl<C: Config, const N: usize, const S: usize, const T: usize> AccessList for AccessControl<'_, C, N, S, T>

Source§

type Access<'b> = AclAccess<'b, C, N, S, T>
where Self: 'b,