Struct completion::stream::Next [−][src]
Future for CompletionStreamExt::next
.
Trait Implementations
impl<S: Unpin + ?Sized> CompletionFuture for Next<'_, S> where
S: CompletionStream,
[src]
S: CompletionStream,
type Output = Option<S::Item>
The type of value produced on completion.
unsafe fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
unsafe fn poll_cancel(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>
[src]
impl<'a, S: Debug + ?Sized> Debug for Next<'a, S>
[src]
impl<S: Unpin + ?Sized> Future for Next<'_, S> where
S: CompletionStream + Stream<Item = <S as CompletionStream>::Item>,
[src]
S: CompletionStream + Stream<Item = <S as CompletionStream>::Item>,
type Output = Option<<S as CompletionStream>::Item>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<S: Unpin + ?Sized> Unpin for Next<'_, S>
[src]
Auto Trait Implementations
impl<'a, S: ?Sized> RefUnwindSafe for Next<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S: ?Sized> Send for Next<'a, S> where
S: Send,
S: Send,
impl<'a, S: ?Sized> Sync for Next<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> !UnwindSafe for Next<'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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CompletionFutureExt for T where
T: CompletionFuture + ?Sized,
[src]
T: CompletionFuture + ?Sized,
unsafe fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
[src]
Self: Unpin,
unsafe fn poll_cancel(&mut self, cx: &mut Context<'_>) -> Poll<()> where
Self: Unpin,
[src]
Self: Unpin,
fn must_complete(self) -> MustComplete<Self> where
Self: Sized,
[src]
Self: Sized,
fn now_or_never(self) -> NowOrNever<Self>ⓘNotable traits for NowOrNever<F>
impl<F> Future for NowOrNever<F> where
F: CompletionFuture + Future<Output = <F as CompletionFuture>::Output>, type Output = Option<<F as CompletionFuture>::Output>;
where
Self: Sized,
[src]
Notable traits for NowOrNever<F>
impl<F> Future for NowOrNever<F> where
F: CompletionFuture + Future<Output = <F as CompletionFuture>::Output>, type Output = Option<<F as CompletionFuture>::Output>;
Self: Sized,
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>
impl<F: Future + UnwindSafe + ?Sized> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
[src]
Notable traits for CatchUnwind<F>
impl<F: Future + UnwindSafe + ?Sized> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
Self: Sized + UnwindSafe,
fn boxed<'a>(self) -> BoxCompletionFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[src]
Self: Sized + Send + 'a,
fn boxed_local<'a>(self) -> LocalBoxCompletionFuture<'a, Self::Output> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
impl<T> From<T> for T
[src]
impl<T> FutureExt for T where
T: Future,
[src]
T: Future,
fn into_completion(self) -> Adapter<Self>ⓘ
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
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.
pub 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>,