pub struct HttpState<T> {
pub app: Arc<RwLock<T>>,
}Expand description
Shared state for HTTP handlers
Fields§
§app: Arc<RwLock<T>>Application state
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for HttpState<T>
impl<T> !RefUnwindSafe for HttpState<T>
impl<T> Send for HttpState<T>
impl<T> Sync for HttpState<T>
impl<T> Unpin for HttpState<T>
impl<T> !UnwindSafe for HttpState<T>
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