Skip to main content

RiskSimulationStateProvider

Trait RiskSimulationStateProvider 

Source
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§

Source

type Engine: RiskSimulationEngine

The application’s existing risk engine.

Required Methods§

Source

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".

Implementors§