Skip to main content

Gateable

Trait Gateable 

Source
pub trait Gateable:
    Sealed
    + Copy
    + 'static {
    const DIRECTION: RiskDirection;
}
Expand description

Sealed marker trait — only implemented by Increases below. External crates cannot implement it, which keeps the invariant “only risk-increasing commands are friction-gated” enforceable at compile time.

Required Associated Constants§

Source

const DIRECTION: RiskDirection

Runtime echo of the compile-time direction, for logging.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Gateable for Increases

Source§

const DIRECTION: RiskDirection = RiskDirection::Increases