Struct futures_util::future::MapOk [−][src]
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]pub struct MapOk<Fut, F> { /* fields omitted */ }
Expand description
Future for the map_ok
method.
Trait Implementations
impl<Fut, F> FusedFuture for MapOk<Fut, F> where
Map<IntoFuture<Fut>, MapOkFn<F>>: FusedFuture,
[src]
impl<Fut, F> FusedFuture for MapOk<Fut, F> where
Map<IntoFuture<Fut>, MapOkFn<F>>: FusedFuture,
[src]fn is_terminated(&self) -> bool
[src]
fn is_terminated(&self) -> bool
[src]Returns true
if the underlying future should no longer be polled.
impl<Fut, F> Future for MapOk<Fut, F> where
Map<IntoFuture<Fut>, MapOkFn<F>>: Future,
[src]
impl<Fut, F> Future for MapOk<Fut, F> where
Map<IntoFuture<Fut>, MapOkFn<F>>: Future,
[src]type Output = <Map<IntoFuture<Fut>, MapOkFn<F>> as Future>::Output
type Output = <Map<IntoFuture<Fut>, MapOkFn<F>> as Future>::Output
The type of value produced on completion.
impl<'__pin, Fut, F> Unpin for MapOk<Fut, F> where
__Origin<'__pin, Fut, F>: Unpin,
[src]
__Origin<'__pin, Fut, F>: Unpin,
Auto Trait Implementations
impl<Fut, F> RefUnwindSafe for MapOk<Fut, F> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F> Send for MapOk<Fut, F> where
F: Send,
Fut: Send,
F: Send,
Fut: Send,
impl<Fut, F> Sync for MapOk<Fut, F> where
F: Sync,
Fut: Sync,
F: Sync,
Fut: Sync,
impl<Fut, F> UnwindSafe for MapOk<Fut, F> where
F: UnwindSafe,
Fut: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
[src]type Output = <F as Future>::Output
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
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]
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.