pub struct RequestBodyConnection<'r, R: Read> { /* private fields */ }Expand description
The connection reading the request body. Can be used to read the request body and then extract the underlying connection for reading further data, such as if the connenction has been upgraded.
Implementations§
Source§impl<'r, R: Read> RequestBodyConnection<'r, R>
impl<'r, R: Read> RequestBodyConnection<'r, R>
Sourcepub const fn content_length(&self) -> usize
pub const fn content_length(&self) -> usize
Return the total length of the body
Sourcepub fn body(&mut self) -> RequestBody<'_, R>
pub fn body(&mut self) -> RequestBody<'_, R>
Return the Request Body
Auto Trait Implementations§
impl<'r, R> Freeze for RequestBodyConnection<'r, R>
impl<'r, R> !RefUnwindSafe for RequestBodyConnection<'r, R>
impl<'r, R> !Send for RequestBodyConnection<'r, R>
impl<'r, R> !Sync for RequestBodyConnection<'r, R>
impl<'r, R> Unpin for RequestBodyConnection<'r, R>
impl<'r, R> !UnwindSafe for RequestBodyConnection<'r, R>
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