Skip to main content

CommandPolicy

Trait CommandPolicy 

Source
pub trait CommandPolicy: Send + Sync {
    // Required method
    fn check(&self, invocation: &CommandInvocation) -> Result<()>;
}

Required Methods§

Source

fn check(&self, invocation: &CommandInvocation) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§