[−][src]Struct smol::stream::Empty
Stream for the empty()
function.
Trait Implementations
impl<T> Debug for Empty<T> where
T: Debug,
[src]
T: Debug,
impl<T> Stream for Empty<T>
[src]
type Item = T
Values yielded by the stream.
fn poll_next(
self: Pin<&mut Empty<T>>,
&mut Context<'_>
) -> Poll<Option<<Empty<T> as Stream>::Item>>
[src]
self: Pin<&mut Empty<T>>,
&mut Context<'_>
) -> Poll<Option<<Empty<T> as Stream>::Item>>
fn size_hint(&self) -> (usize, Option<usize>)
[src]
impl<T> Unpin for Empty<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Empty<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Empty<T> where
T: Send,
T: Send,
impl<T> Sync for Empty<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Empty<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> StreamExt for S where
S: Stream + ?Sized,
[src]
S: Stream + ?Sized,
fn next(&mut self) -> NextFuture<'_, Self>ⓘNotable traits for NextFuture<'_, S>
impl<'_, S> Future for NextFuture<'_, S> where
S: Unpin + Stream + ?Sized, type Output = Option<<S as Stream>::Item>;
where
Self: Unpin,
[src]
Notable traits for NextFuture<'_, S>
impl<'_, S> Future for NextFuture<'_, S> where
S: Unpin + Stream + ?Sized, type Output = Option<<S as Stream>::Item>;
Self: Unpin,
fn count(self) -> CountFuture<Self>ⓘNotable traits for CountFuture<S>
impl<S> Future for CountFuture<S> where
S: Stream + ?Sized, type Output = usize;
[src]
Notable traits for CountFuture<S>
impl<S> Future for CountFuture<S> where
S: Stream + ?Sized, type Output = usize;
fn map<T, F>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> T,
[src]
F: FnMut(Self::Item) -> T,
fn filter<P>(self, predicate: P) -> Filter<Self, P> where
P: FnMut(&Self::Item) -> bool,
[src]
P: FnMut(&Self::Item) -> bool,
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
[src]
F: FnMut(Self::Item) -> Option<T>,
fn collect<C>(self) -> CollectFuture<Self, C>ⓘNotable traits for CollectFuture<S, C>
impl<S, C> Future for CollectFuture<S, C> where
C: Default + Extend<<S as Stream>::Item>,
S: Stream, type Output = C;
where
C: Default + Extend<Self::Item>,
[src]
Notable traits for CollectFuture<S, C>
impl<S, C> Future for CollectFuture<S, C> where
C: Default + Extend<<S as Stream>::Item>,
S: Stream, type Output = C;
C: Default + Extend<Self::Item>,
fn try_collect<T, C>(self) -> TryCollectFuture<Self, C>ⓘNotable traits for TryCollectFuture<S, C>
impl<T, E, S, C> Future for TryCollectFuture<S, C> where
C: Default + Extend<T>,
S: Stream<Item = Result<T, E>>, type Output = Result<C, E>;
where
C: Default + Extend<T>,
Self::Item: Result,
<Self::Item as Result>::Ok == T,
[src]
Notable traits for TryCollectFuture<S, C>
impl<T, E, S, C> Future for TryCollectFuture<S, C> where
C: Default + Extend<T>,
S: Stream<Item = Result<T, E>>, type Output = Result<C, E>;
C: Default + Extend<T>,
Self::Item: Result,
<Self::Item as Result>::Ok == T,
fn fold<T, F>(self, init: T, f: F) -> FoldFuture<Self, F, T>ⓘNotable traits for FoldFuture<S, F, T>
impl<S, F, T> Future for FoldFuture<S, F, T> where
F: FnMut(T, <S as Stream>::Item) -> T,
S: Stream, type Output = T;
where
F: FnMut(T, Self::Item) -> T,
[src]
Notable traits for FoldFuture<S, F, T>
impl<S, F, T> Future for FoldFuture<S, F, T> where
F: FnMut(T, <S as Stream>::Item) -> T,
S: Stream, type Output = T;
F: FnMut(T, Self::Item) -> T,
fn try_fold<T, E, F, B>(
&mut self,
init: B,
f: F
) -> TryFoldFuture<'_, Self, F, B>ⓘNotable traits for TryFoldFuture<'a, S, F, B>
impl<'a, T, E, S, F, B> Future for TryFoldFuture<'a, S, F, B> where
F: FnMut(B, T) -> Result<B, E>,
S: Stream + Unpin,
<S as Stream>::Item: Result,
<<S as Stream>::Item as Result>::Ok == T,
<<S as Stream>::Item as Result>::Err == E, type Output = Result<B, E>;
where
F: FnMut(B, T) -> Result<B, E>,
Self: Unpin,
Self::Item: Result,
<Self::Item as Result>::Ok == T,
<Self::Item as Result>::Err == E,
[src]
&mut self,
init: B,
f: F
) -> TryFoldFuture<'_, Self, F, B>ⓘ
Notable traits for TryFoldFuture<'a, S, F, B>
impl<'a, T, E, S, F, B> Future for TryFoldFuture<'a, S, F, B> where
F: FnMut(B, T) -> Result<B, E>,
S: Stream + Unpin,
<S as Stream>::Item: Result,
<<S as Stream>::Item as Result>::Ok == T,
<<S as Stream>::Item as Result>::Err == E, type Output = Result<B, E>;
F: FnMut(B, T) -> Result<B, E>,
Self: Unpin,
Self::Item: Result,
<Self::Item as Result>::Ok == T,
<Self::Item as Result>::Err == E,
fn boxed(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'static + Send>>ⓘ where
Self: Send + 'static,
[src]
Self: Send + 'static,
fn boxed_local(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'static>>ⓘ where
Self: 'static,
[src]
Self: 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
[src]
S: Stream<Item = Result<T, E>> + ?Sized,