pub struct AclAccess<'a, C: Config, const N: usize, const S: usize, const T: usize> { /* private fields */ }Expand description
An Acl as the AccessControl one interaction sees.
The trait asks “may this action have required on this path?” and takes no subject,
because the subject is not a property of the path — it is a property of the session the
action arrived on. So the subject is bound here, once, when the interaction is set up,
and the trait’s question becomes answerable:
// Derived from the session (§6.6.6.3), never from anything the message claimed.
let subject = SubjectDescriptor::case(FabricIndex(1), NodeId(0x1234));
let access = AclAccess::new(acl, node, &subject);
// `access` is now what `Server::new` takes.A path that is not concrete is denied. Every call the server makes passes a concrete one — a wildcard is expanded before it is checked — so this is unreachable in practice, and it fails closed rather than guessing which endpoint a caller meant.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, C, const N: usize, const S: usize, const T: usize> !RefUnwindSafe for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> !Send for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> !Sync for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> !UnwindSafe for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> Forget for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> Freeze for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> Move for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> Unpin for AclAccess<'a, C, N, S, T>
impl<'a, C, const N: usize, const S: usize, const T: usize> UnsafeUnpin for AclAccess<'a, C, N, S, T>
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