Skip to main content

CommandCapabilityPolicy

Trait CommandCapabilityPolicy 

Source
pub trait CommandCapabilityPolicy: Send + Sync {
    // Required method
    fn authorize_command(
        &self,
        command_name: &str,
        idempotency_key: Option<&str>,
        now_ms: u64,
    ) -> Result<(), CommandCapabilityPolicyError>;
}
Expand description

Authorizes command execution against capability and leadership policy.

Required Methods§

Source

fn authorize_command( &self, command_name: &str, idempotency_key: Option<&str>, now_ms: u64, ) -> Result<(), CommandCapabilityPolicyError>

Authorizes a named command at now_ms.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§