pub struct AppState {
pub start_time: Instant,
pub request_count: Arc<Mutex<u64>>,
pub pipeline: Arc<DefaultCompressionPipeline>,
pub ccr_store: Arc<dyn CcrStore>,
}Expand description
Application state shared across handlers.
Fields§
§start_time: Instant§request_count: Arc<Mutex<u64>>§pipeline: Arc<DefaultCompressionPipeline>§ccr_store: Arc<dyn CcrStore>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for 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