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§
Sourceconst DIRECTION: RiskDirection
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.