Skip to main content

mode_admits

Function mode_admits 

Source
pub fn mode_admits(policy: &RunPolicy, name: &str) -> Result<(), AxError>
Expand description

The gate a resident tool asks at its call: a tool that some mode carries and the mode in force does not is refused, before it does anything (runtime D25). A tool outside every core is the catalog’s to reach through call, and this gate does not judge it.

§Errors

E_GATE_DENIED, naming the tool and the mode, when the mode in force does not run it.