pub struct AppState {
pub key_store: Arc<KeyStore>,
pub service_pool: Arc<ServicePool>,
pub file_store: Arc<FileStore>,
pub config: Arc<ProxyConfig>,
}Expand description
Shared application state passed to all axum handlers via State.
Fields§
§key_store: Arc<KeyStore>§service_pool: Arc<ServicePool>§file_store: Arc<FileStore>§config: Arc<ProxyConfig>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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