pub struct Limited<B> { /* private fields */ }Expand description
A body that limits the size of another body.
Returns an error if the inner body exceeds the limit.
Implementations§
Trait Implementations§
Source§impl<B: Body + Unpin> Body for Limited<B>
impl<B: Body + Unpin> Body for Limited<B>
Auto Trait Implementations§
impl<B> Freeze for Limited<B>where
B: Freeze,
impl<B> RefUnwindSafe for Limited<B>where
B: RefUnwindSafe,
impl<B> Send for Limited<B>where
B: Send,
impl<B> Sync for Limited<B>where
B: Sync,
impl<B> Unpin for Limited<B>where
B: Unpin,
impl<B> UnsafeUnpin for Limited<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Limited<B>where
B: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).