Struct ajars_actix_web::actix_web::body::BoxAnyBody [−]
pub struct BoxAnyBody(_);
Expand description
A boxed message body with boxed errors.
Implementations
impl BoxAnyBody
impl BoxAnyBody
pub fn from_body<B>(body: B) -> BoxAnyBody where
B: MessageBody + 'static,
<B as MessageBody>::Error: Into<Box<dyn Error + 'static, Global>>,
pub fn from_body<B>(body: B) -> BoxAnyBody where
B: MessageBody + 'static,
<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
impl Debug for BoxAnyBody
impl Debug for BoxAnyBody
impl MessageBody for BoxAnyBody
impl MessageBody for BoxAnyBody
type Error = Error
pub fn poll_next(
self: Pin<&mut BoxAnyBody>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, <BoxAnyBody as MessageBody>::Error>>>
pub fn poll_next(
self: Pin<&mut BoxAnyBody>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, <BoxAnyBody as MessageBody>::Error>>>
Attempt to pull out the next chunk of body bytes.