Struct dropshot::UntypedBody
source · pub struct UntypedBody { /* private fields */ }
Expand description
UntypedBody
is an extractor for reading in the contents of the HTTP request
body and making the raw bytes directly available to the consumer.
Implementations§
Trait Implementations§
source§impl Debug for UntypedBody
impl Debug for UntypedBody
source§impl ExclusiveExtractor for UntypedBody
impl ExclusiveExtractor for UntypedBody
source§fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>,
request: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<UntypedBody, HttpError>> + Send + 'async_trait>>where
Context: 'async_trait + ServerContext,
'life0: 'async_trait,
fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>,
request: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<UntypedBody, HttpError>> + Send + 'async_trait>>where
Context: 'async_trait + ServerContext,
'life0: 'async_trait,
Construct an instance of this type from a
RequestContext
.fn metadata(_content_type: ApiEndpointBodyContentType) -> ExtractorMetadata
Auto Trait Implementations§
impl RefUnwindSafe for UntypedBody
impl Send for UntypedBody
impl Sync for UntypedBody
impl Unpin for UntypedBody
impl UnwindSafe for UntypedBody
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