pub struct UpstreamClient {
pub http_client: Client,
pub request_timeout: Duration,
}Expand description
Shared upstream connection config for forwarding requests.
Concurrency and buffered-path timeout are enforced at the axum edge
by ConcurrencyLimitLayer / TimeoutLayer. request_timeout here
applies only to streaming calls, which the tower-http timeout can’t
cover (it cancels at response start, not mid-stream).
Fields§
§http_client: Client§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