Skip to main content

FlowGateAuthorizer

Trait FlowGateAuthorizer 

Source
pub trait FlowGateAuthorizer: Send + Sync {
    // Required method
    fn decide(
        &self,
        input: &FlowGateInput,
    ) -> Result<FlowGateDecision, FlowGateError>;
}
Expand description

Deterministic decision provider for consequential flow actions.

Required Methods§

Source

fn decide( &self, input: &FlowGateInput, ) -> Result<FlowGateDecision, FlowGateError>

Decide whether the attempted flow action should promote, reject, or escalate.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§