Trait ore::future::OreTryFutureExt[][src]

pub trait OreTryFutureExt: TryFuture {
    fn discard(self) -> MapOk<Self, fn(_: Self::Ok)>
    where
        Self: Sized + Future
; }
Expand description

Extension methods for Result-returning futures.

Required methods

Discards the successful result of this future by producing unit instead. Errors are passed through.

Implementors