Skip to main content

ResFut

Trait ResFut 

Source
pub trait ResFut<'a, R, E>:
    Future<Output = Result<R, E>>
    + Send
    + 'a { }
Expand description

A future that resolves to a Result.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, R, E, T: Future<Output = Result<R, E>> + Send + 'a> ResFut<'a, R, E> for T