Function std::sync::poison::map_result

source ·
pub fn map_result<T, U, F>(result: LockResult<T>, f: F) -> LockResult<U>where
    F: FnOnce(T) -> U,