Skip to main content

SharedState

Type Alias SharedState 

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

Type alias for the shared state handle used across the server

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.