pub struct AppState {
pub tasks_dir: PathBuf,
pub projects_dir: PathBuf,
pub tx: Sender<String>,
pub metadata_cache: RwLock<MetadataCache>,
pub db: Option<Arc<Database>>,
}Expand description
Application state shared across all handlers
Fields§
§tasks_dir: PathBuf§projects_dir: PathBuf§tx: Sender<String>§metadata_cache: RwLock<MetadataCache>§db: Option<Arc<Database>>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