pub trait CommandPolicy: Send + Sync {
// Required method
fn check(&self, invocation: &CommandInvocation) -> Result<()>;
}Required Methods§
fn check(&self, invocation: &CommandInvocation) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".