pub struct BodyRange<T> { /* private fields */ }Expand description
A container for the payload slice and the optional Content-Range header.
The header is None only if the body was not sliced.
If the axum feature is enabled this struct also implements IntoResponse.
Implementations§
Trait Implementations§
Source§impl IntoResponse for BodyRange<Bytes>
Available on crate feature axum only.
impl IntoResponse for BodyRange<Bytes>
Available on crate feature
axum only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
impl<T: Eq> Eq for BodyRange<T>
impl<T> StructuralPartialEq for BodyRange<T>
Auto Trait Implementations§
impl<T> Freeze for BodyRange<T>where
T: Freeze,
impl<T> RefUnwindSafe for BodyRange<T>where
T: RefUnwindSafe,
impl<T> Send for BodyRange<T>where
T: Send,
impl<T> Sync for BodyRange<T>where
T: Sync,
impl<T> Unpin for BodyRange<T>where
T: Unpin,
impl<T> UnwindSafe for BodyRange<T>where
T: 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