Struct humphrey_server::server::server::AppState
source · pub struct AppState {
pub config: Config,
pub cache: RwLock<Cache>,
pub logger: Logger,
}
Expand description
Represents the application state. Includes the target directory, cache state, and the logger.
Fields§
§config: Config
The app’s configuration.
cache: RwLock<Cache>
The app’s cache.
logger: Logger
The app’s logger.
Trait Implementations§
Auto Trait Implementations§
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