Trait ForClass

Source
pub trait ForClass<T> {
    // Required method
    fn for_class(&self, class: T) -> KernelPermission;
}

Required Methods§

Source

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.

Implementors§