Struct tide_disco::ServerState
source · pub struct ServerState<AppState> {
pub health_status: Arc<RwLock<HealthStatus>>,
pub app_state: AppState,
pub router: Arc<Router<usize>>,
}Fields§
§health_status: Arc<RwLock<HealthStatus>>§app_state: AppState§router: Arc<Router<usize>>Trait Implementations§
source§impl<AppState: Clone> Clone for ServerState<AppState>
impl<AppState: Clone> Clone for ServerState<AppState>
source§fn clone(&self) -> ServerState<AppState>
fn clone(&self) -> ServerState<AppState>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<AppState> Freeze for ServerState<AppState>where
AppState: Freeze,
impl<AppState> !RefUnwindSafe for ServerState<AppState>
impl<AppState> Send for ServerState<AppState>where
AppState: Send,
impl<AppState> Sync for ServerState<AppState>where
AppState: Sync,
impl<AppState> Unpin for ServerState<AppState>where
AppState: Unpin,
impl<AppState> !UnwindSafe for ServerState<AppState>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more