pub struct AppState {
pub db: Box<dyn Database>,
pub cache: Mutex<LruCache<String, Vec<u8>>>,
}
Fields§
§db: Box<dyn Database>
§cache: Mutex<LruCache<String, Vec<u8>>>
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe 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