pub struct AppState {
pub tls: Arc<ReloadingTls>,
pub table: SharedTable,
pub jwt: Arc<JwtVerifier>,
pub limiter: Option<Arc<Limiter>>,
pub client: UpstreamClient,
}Expand description
Everything a connection/request needs, built once at boot.
Fields§
§tls: Arc<ReloadingTls>§table: SharedTable§jwt: Arc<JwtVerifier>§limiter: Option<Arc<Limiter>>§client: UpstreamClientAuto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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