Enum actix_web::dev::AnyBody [−][src]
Expand description
Represents various types of HTTP message body.
Variants
None
Empty response. Content-Length
header is not set.
Bytes(Bytes)
Tuple Fields
0: Bytes
Complete, in-memory response body.
Body(B)
Generic / Other message body.
Implementations
Create boxed body from generic message body.
impl<B> AnyBody<B> where
B: 'static + MessageBody,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
impl<B> AnyBody<B> where
B: 'static + MessageBody,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<B> MessageBody for AnyBody<B> where
B: MessageBody,
<B as MessageBody>::Error: 'static,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
impl<B> MessageBody for AnyBody<B> where
B: MessageBody,
<B as MessageBody>::Error: 'static,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
Auto Trait Implementations
impl<B> RefUnwindSafe for AnyBody<B> where
B: RefUnwindSafe,
impl<B> UnwindSafe for AnyBody<B> where
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more