Struct Count

#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Count<St> { /* private fields */ }

Future for the count method.

Trait Implementations

impl<'__pin, St> Unpin for Count<St> where PinnedFieldsOf<__Origin<'__pin, St>>: Unpin,

impl<St> Debug for Count<St> where St: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<St: FusedStream> FusedFuture for Count<St>

fn is_terminated(&self) -> bool

impl<St: Stream> Future for Count<St>

type Output = usize;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<St> Freeze for Count<St> where St: Freeze,

impl<St> RefUnwindSafe for Count<St> where St: RefUnwindSafe,

impl<St> Send for Count<St> where St: Send,

impl<St> Sync for Count<St> where St: Sync,

impl<St> UnsafeUnpin for Count<St> where St: UnsafeUnpin,

impl<St> UnwindSafe for Count<St> where St: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for Count<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 Count<St> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Count<St> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Count<St> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Count<St>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for Count<St> where T: Future + ?Sized,

impl<T, U> Into<U> for Count<St> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Count<St> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Count<St> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>