Enum actix_http::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
Trait Implementations
impl<L, R> MessageBody for EitherBody<L, R> where
L: MessageBody + 'static,
R: MessageBody + 'static,
impl<L, R> MessageBody for EitherBody<L, R> where
L: MessageBody + 'static,
R: MessageBody + 'static,
Attempt to pull out the next chunk of body bytes.
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
