Skip to main content

required_capability

Function required_capability 

Source
pub fn required_capability(
    req: &KernelRequest,
    scope: AuthorityScope,
) -> &'static str
Expand description

Return the static capability string required to satisfy req under scope.

Pure function so the capability mapping can be unit-tested in isolation. Every KernelRequest variant is covered; there is no default-allow branch.