[−][src]Struct smol::stream::TryNextFuture
Future for the StreamExt::try_next()
method.
Trait Implementations
impl<'a, S> Debug for TryNextFuture<'a, S> where
S: Debug + ?Sized,
[src]
S: Debug + ?Sized,
impl<'_, T, E, S> Future for TryNextFuture<'_, S> where
S: Stream<Item = Result<T, E>> + Unpin + ?Sized,
[src]
S: Stream<Item = Result<T, E>> + Unpin + ?Sized,
type Output = Result<Option<T>, E>
The type of value produced on completion.
fn poll(
self: Pin<&mut TryNextFuture<'_, S>>,
cx: &mut Context<'_>
) -> Poll<<TryNextFuture<'_, S> as Future>::Output>
[src]
self: Pin<&mut TryNextFuture<'_, S>>,
cx: &mut Context<'_>
) -> Poll<<TryNextFuture<'_, S> as Future>::Output>
impl<'_, S> Unpin for TryNextFuture<'_, S> where
S: Unpin + ?Sized,
[src]
S: Unpin + ?Sized,
Auto Trait Implementations
impl<'a, S: ?Sized> RefUnwindSafe for TryNextFuture<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S: ?Sized> Send for TryNextFuture<'a, S> where
S: Send,
S: Send,
impl<'a, S: ?Sized> Sync for TryNextFuture<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> !UnwindSafe for TryNextFuture<'a, S>
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<F> FutureExt for F where
F: Future + ?Sized,
[src]
F: Future + ?Sized,
fn or<F>(self, other: F) -> Or<Self, F>ⓘ where
F: Future<Output = Self::Output>,
[src]
F: Future<Output = Self::Output>,
fn race<F>(self, other: F) -> Race<Self, F>ⓘ where
F: Future<Output = Self::Output>,
[src]
F: Future<Output = Self::Output>,
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a + Send>>ⓘ where
Self: Send + 'a,
[src]
Self: Send + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>ⓘ where
Self: 'a,
[src]
Self: 'a,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
fn try_poll(
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
[src]
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,