pub struct StreamLimits {
pub idle_timeout: Duration,
pub max_stream_duration: Option<Duration>,
pub max_total_bytes: Option<usize>,
}Expand description
Limits governing a streaming sub-request response body.
Fields§
§idle_timeout: DurationMaximum wait for the next upstream chunk. Applied per
next_chunk() call. Required.
max_stream_duration: Option<Duration>Optional absolute stream lifetime measured from header receipt.
None means no duration limit.
max_total_bytes: Option<usize>Optional cumulative byte limit across all chunks. The buffered
max_response_bytes ceiling is not applied to streaming
responses — only this explicit limit constrains the stream.
None means no byte limit.
Trait Implementations§
Source§impl Clone for StreamLimits
impl Clone for StreamLimits
Source§fn clone(&self) -> StreamLimits
fn clone(&self) -> StreamLimits
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 StreamLimits
impl RefUnwindSafe for StreamLimits
impl Send for StreamLimits
impl Sync for StreamLimits
impl Unpin for StreamLimits
impl UnsafeUnpin for StreamLimits
impl UnwindSafe for StreamLimits
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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