pub struct BoundedBody<T>(/* private fields */);Expand description
An HTTP body with a known length
Trait Implementations§
Source§impl<T: Debug> Debug for BoundedBody<T>
impl<T: Debug> Debug for BoundedBody<T>
Source§impl<T: Default> Default for BoundedBody<T>
impl<T: Default> Default for BoundedBody<T>
Source§fn default() -> BoundedBody<T>
fn default() -> BoundedBody<T>
Returns the “default value” for a type. Read more
Source§impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Html<T>
impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Html<T>
fn into_response(self) -> Response
Source§impl IntoResponse<BoundedBody<Vec<u8>>> for HttpError
impl IntoResponse<BoundedBody<Vec<u8>>> for HttpError
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Source§impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Json<T>where
T: Serialize,
impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Json<T>where
T: Serialize,
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Source§impl IntoResponse<BoundedBody<Vec<u8>>> for Result<(), HttpError>
impl IntoResponse<BoundedBody<Vec<u8>>> for Result<(), HttpError>
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Source§impl<B: IntoBody<IntoBody = BoundedBody<Vec<u8>>>> IntoResponse<BoundedBody<Vec<u8>>> for Result<B, HttpError>
impl<B: IntoBody<IntoBody = BoundedBody<Vec<u8>>>> IntoResponse<BoundedBody<Vec<u8>>> for Result<B, HttpError>
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Source§impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Result<Json<T>, HttpError>where
T: Serialize,
impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Result<Json<T>, HttpError>where
T: Serialize,
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Auto Trait Implementations§
impl<T> Freeze for BoundedBody<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundedBody<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedBody<T>where
T: Send,
impl<T> Sync for BoundedBody<T>where
T: Sync,
impl<T> Unpin for BoundedBody<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedBody<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BoundedBody<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