[][src]Function futures_async_combinators::future::map_ok

pub async fn map_ok<Fut, F, T, U, E>(future: Fut, f: F) -> Result<U, E> where
    F: FnOnce(T) -> U,
    Fut: Future<Output = Result<T, E>>,