pub struct UpstreamClient {
pub http_client: Client,
pub semaphore: Arc<Semaphore>,
pub request_timeout: Duration,
}Expand description
Shared upstream connection config for forwarding requests.
Fields§
§http_client: Client§semaphore: Arc<Semaphore>§request_timeout: DurationTrait Implementations§
Source§impl Clone for UpstreamClient
impl Clone for UpstreamClient
Source§fn clone(&self) -> UpstreamClient
fn clone(&self) -> UpstreamClient
Returns a duplicate of the value. Read more
1.0.0 · 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 UpstreamClient
impl !RefUnwindSafe for UpstreamClient
impl Send for UpstreamClient
impl Sync for UpstreamClient
impl Unpin for UpstreamClient
impl UnsafeUnpin for UpstreamClient
impl !UnwindSafe for UpstreamClient
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