pub struct Either<L, R> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<L, R> Body for Either<L, R>
impl<L, R> Body for Either<L, R>
Source§fn poll_frame(
self: Pin<&mut Either<L, R>>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Either<L, R> as Body>::Data>, <Either<L, R> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Either<L, R>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Either<L, R> as Body>::Data>, <Either<L, R> as Body>::Error>>>
Attempt to pull the next frame from the body. Read more
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Indicates whether the body has been fully consumed. Read more
impl<'__pin, L, R> Unpin for Either<L, R>where
<PinnedFieldsOfHelperStruct<__Origin<'__pin, L, R>> as PinnedFieldsOfHelperTrait>::Actual: Unpin,
Auto Trait Implementations§
impl<L, R> Freeze for Either<L, R>
impl<L, R> RefUnwindSafe for Either<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Either<L, R>
impl<L, R> Sync for Either<L, R>
impl<L, R> UnsafeUnpin for Either<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for Either<L, R>where
L: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more