pub struct AppState {
pub config: ProxyConfig,
pub signals: SignalSink,
pub http: Client,
}Expand description
Application state shared by all handlers.
Fields§
§config: ProxyConfigCurrent config (swap-able at runtime in future).
signals: SignalSinkSink where proxy events land — the CLI later flushes these to storage.
http: ClientReqwest client for upstream forwarding.
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