Trait Elapsed

Source
pub trait Elapsed<T> {
    // Required method
    fn with_elapsed(
        self,
        name: &'static str,
        threshold: Option<Duration>,
    ) -> impl Future<Output = T> + Send
       where Self: Future<Output = T>;
}

Required Methods§

Source

fn with_elapsed( self, name: &'static str, threshold: Option<Duration>, ) -> impl Future<Output = T> + Send
where Self: Future<Output = T>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, T> Elapsed<T> for F
where F: Future<Output = T> + Send,