Struct humphrey_server::server::static_server::AppState [−][src]
pub struct AppState {
pub directory: String,
pub cache_limit: usize,
pub cache: RwLock<Cache>,
pub websocket_proxy: Option<String>,
pub blacklist: Vec<String>,
pub blacklist_mode: BlacklistMode,
pub logger: Logger,
}
Expand description
Represents the application state. Includes the target directory, cache state, and the logger.
Fields
directory: String
cache_limit: usize
cache: RwLock<Cache>
websocket_proxy: Option<String>
blacklist: Vec<String>
blacklist_mode: BlacklistMode
logger: Logger