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§
Sourcefn decide(
&self,
input: &FlowGateInput,
) -> Result<FlowGateDecision, FlowGateError>
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".