pub struct ProxyState {
pub config: ProxyConfig,
pub http_client: Client,
pub session: Arc<SessionStats>,
}Expand description
Shared proxy state, threaded through axum handlers via State<ProxyState>.
Fields§
§config: ProxyConfig§http_client: Client§session: Arc<SessionStats>Implementations§
Source§impl ProxyState
impl ProxyState
pub fn new(config: ProxyConfig) -> Self
Trait Implementations§
Source§impl Clone for ProxyState
impl Clone for ProxyState
Source§fn clone(&self) -> ProxyState
fn clone(&self) -> ProxyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProxyState
impl !UnwindSafe for ProxyState
impl Freeze for ProxyState
impl Send for ProxyState
impl Sync for ProxyState
impl Unpin for ProxyState
impl UnsafeUnpin for ProxyState
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