pub trait RiskSimulationStateProvider:
Clone
+ Send
+ Sync
+ 'static {
type Engine: RiskSimulationEngine;
// Required method
fn risk_engine(&self) -> &Self::Engine;
}Expand description
State supplied by the application without exposing its authentication module.
Required Associated Types§
Sourcetype Engine: RiskSimulationEngine
type Engine: RiskSimulationEngine
The application’s existing risk engine.
Required Methods§
Sourcefn risk_engine(&self) -> &Self::Engine
fn risk_engine(&self) -> &Self::Engine
Access that engine, preserving shared state with authentication consumers.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".