pub struct RealityProxyConfig {
pub upstream_base: String,
pub client: Client,
}Expand description
Cheap-to-clone handle holding the upstream base URL and a shared
reqwest client. Constructed once at server startup; the layer closure
holds an Arc<RealityProxyConfig> so per-request work is just an
arc-clone.
Fields§
§upstream_base: StringBase URL — protocol + host + (optional) port, no trailing slash. Path/query are taken from the incoming request.
client: ClientShared HTTP client used for all upstream requests.
Implementations§
Trait Implementations§
Source§impl Clone for RealityProxyConfig
impl Clone for RealityProxyConfig
Source§fn clone(&self) -> RealityProxyConfig
fn clone(&self) -> RealityProxyConfig
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 Freeze for RealityProxyConfig
impl !RefUnwindSafe for RealityProxyConfig
impl Send for RealityProxyConfig
impl Sync for RealityProxyConfig
impl Unpin for RealityProxyConfig
impl UnsafeUnpin for RealityProxyConfig
impl !UnwindSafe for RealityProxyConfig
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