pub trait Policy {
    // Required methods
    fn policy_error(
        &self,
        _tag: String,
        msg: String
    ) -> Result<(), ValidationError>;
    fn global_velocity_control(&self) -> VelocityControlSpec;
}
Expand description

An enforcement policy

Required Methods§

source

fn policy_error(&self, _tag: String, msg: String) -> Result<(), ValidationError>

A policy error has occured. Policy errors can be converted to warnings by returning Ok(())

source

fn global_velocity_control(&self) -> VelocityControlSpec

Velocity control to apply to the entire node

Implementors§