Enum actix_http::body::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.
Constructs new AnyBody
instance from a slice of bytes by copying it.
If your bytes container is owned, it may be cheaper to use a From
impl.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<B> MessageBody for AnyBody<B> where
B: MessageBody,
B::Error: Into<Box<dyn StdError>> + 'static,
impl<B> MessageBody for AnyBody<B> where
B: MessageBody,
B::Error: Into<Box<dyn StdError>> + 'static,
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