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.

Implementors§