pub trait AccessControl<C>: Clone {
// Required method
fn grant_assess(
&self,
creds: &C,
permission: Permission,
) -> Result<(), Errno>;
}Expand description
An object responsible to validating permissions for netlink clients.
Required Methods§
Sourcefn grant_assess(&self, creds: &C, permission: Permission) -> Result<(), Errno>
fn grant_assess(&self, creds: &C, permission: Permission) -> Result<(), Errno>
Returns true if a client with the specified credentials has the specified permission.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.