Struct poem::web::RequestBody
source · pub struct RequestBody(_);
Expand description
The body parameter type of FromRequest::from_request
method.
Implementations
sourceimpl RequestBody
impl RequestBody
sourcepub fn take(&mut self) -> Result<Body, ReadBodyError>
pub fn take(&mut self) -> Result<Body, ReadBodyError>
Take a body, if it has already been taken, an error with the status code
StatusCode::INTERNAL_SERVER_ERROR
is returned.
Trait Implementations
sourceimpl Default for RequestBody
impl Default for RequestBody
sourcefn default() -> RequestBody
fn default() -> RequestBody
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl !UnwindSafe for RequestBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more