Skip to main content

SharedState

Type Alias SharedState 

Source
pub type SharedState = Arc<ServerState>;
Expand description

Type alias for the shared state handle used across the server.

dravr-tronc 0.5 shares state as Arc<S>, so the mutable provider/model configuration lives behind a per-field interior RwLock rather than an outer one.

Aliased Type§

pub struct SharedState { /* private fields */ }

Trait Implementations§

Source§

impl FromRef<AppState> for SharedState

Source§

fn from_ref(app: &AppState) -> Self

Converts to this type from a reference to the input type.