pub trait ForClass<T> {
// Required method
fn for_class(&self, class: T) -> KernelPermission;
}Required Methods§
Sourcefn for_class(&self, class: T) -> KernelPermission
fn for_class(&self, class: T) -> KernelPermission
Returns the class-affine KernelPermission value corresponding to this common
permission. This is used to allow hooks to resolve e.g. common “sys_nice” permission access
based on the “allow” rules for the correct target object class.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".