Skip to main content

CommandAuthorization

Type Alias CommandAuthorization 

Source
pub type CommandAuthorization = Arc<dyn Fn(&mut dyn FnMut() -> Result<()>) -> Result<()> + Send + Sync>;
Expand description

Authorizes one command at its process-launch boundary.

Returning without invoking the callback denies the launch. Implementations must invoke it only while the authoritative authorization state is held.

Aliased Typeยง

pub struct CommandAuthorization { /* private fields */ }