Enum actix_web::body::EitherBody
source · [−]pub enum EitherBody<L, R = BoxBody> {
Left {
body: L,
},
Right {
body: R,
},
}
Variants
Left
A body of type L
.
Right
A body of type R
.
Implementations
Creates new EitherBody
using left variant and boxed right variant.
Creates new EitherBody
using left variant.
Creates new EitherBody
using right variant.
Trait Implementations
impl<L, R> MessageBody for EitherBody<L, R> where
L: 'static + MessageBody,
R: 'static + MessageBody,
impl<L, R> MessageBody for EitherBody<L, R> where
L: 'static + MessageBody,
R: 'static + MessageBody,
pub fn poll_next(
self: Pin<&mut EitherBody<L, R>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, <EitherBody<L, R> as MessageBody>::Error>>>
pub fn poll_next(
self: Pin<&mut EitherBody<L, R>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, <EitherBody<L, R> as MessageBody>::Error>>>
Attempt to pull out the next chunk of body bytes. Read more
Try to convert into the complete chunk of body bytes. Read more
Auto Trait Implementations
impl<L, R> RefUnwindSafe for EitherBody<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for EitherBody<L, R> where
L: Send,
R: Send,
impl<L, R> Sync for EitherBody<L, R> where
L: Sync,
R: Sync,
impl<L, R> UnwindSafe for EitherBody<L, R> where
L: UnwindSafe,
R: 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