Struct actix_web::body::BoxAnyBody [−][src]
pub struct BoxAnyBody(_);
Expand description
A boxed message body with boxed errors.
Implementations
pub fn from_body<B>(body: B) -> BoxAnyBody where
B: 'static + MessageBody,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
pub fn from_body<B>(body: B) -> BoxAnyBody where
B: 'static + MessageBody,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
Boxes a MessageBody
and any errors it generates.
pub fn as_pin_mut(
&mut self
) -> Pin<&mut dyn MessageBody<Error = Box<dyn Error + 'static, Global>>>
pub fn as_pin_mut(
&mut self
) -> Pin<&mut dyn MessageBody<Error = Box<dyn Error + 'static, Global>>>
Returns a mutable pinned reference to the inner message body type.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BoxAnyBody
impl !Send for BoxAnyBody
impl !Sync for BoxAnyBody
impl Unpin for BoxAnyBody
impl !UnwindSafe for BoxAnyBody
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