Skip to main content

HumanGate

Trait HumanGate 

Source
pub trait HumanGate: Send + Sync {
    // Required method
    fn decide(&self, level: LoopLevel, action: &ProposedAction) -> GateDecision;
}
Expand description

Decides what happens to a verified proposal. Implementations encode the human-gate policy; the engine consults this once per round.

Required Methods§

Source

fn decide(&self, level: LoopLevel, action: &ProposedAction) -> GateDecision

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§