Skip to main content

register_gate

Function register_gate 

Source
pub fn register_gate(gate: ShellGate) -> bool
Expand description

Install the policy gate. The first registration wins and is never replaced: returns false when a gate was already registered, so the caller can refuse to start instead of running under a gate it did not install.