Struct Next
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Next<'a, St: ?Sized> { /* private fields */ }
Future for the next method.
Trait Implementations
impl<'a, St: Debug + ?Sized> Debug for Next<'a, St>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<St: ?Sized + FusedStream + Unpin> FusedFuture for Next<'_, St>
fn is_terminated(&self) -> bool
impl<St: ?Sized + Stream + Unpin> Future for Next<'_, St>
type Output = Option<<St as Stream>::Item>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
impl<St: ?Sized + Unpin> Unpin for Next<'_, St>
Auto Trait Implementations
impl<'a, St> !UnwindSafe for Next<'a, St>
impl<'a, St> Freeze for Next<'a, St>
where
&'a mut St: Freeze,
St: ?Sized,
impl<'a, St> RefUnwindSafe for Next<'a, St>
where
&'a mut St: RefUnwindSafe,
St: ?Sized,
impl<'a, St> Send for Next<'a, St>
where
&'a mut St: Send,
St: ?Sized,
impl<'a, St> Sync for Next<'a, St>
where
&'a mut St: Sync,
St: ?Sized,
impl<'a, St> UnsafeUnpin for Next<'a, St>
where
&'a mut St: UnsafeUnpin,
St: ?Sized,
Blanket Implementations
impl<F> IntoFuture for Next<'a, St>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for Next<'a, St>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Next<'a, St>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Next<'a, St>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Next<'a, St>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for Next<'a, St>
where
T: Future + ?Sized,
impl<T, U> Into<U> for Next<'a, St>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Next<'a, St>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Next<'a, St>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>