TimeoutHelper

Trait TimeoutHelper 

Source
pub trait TimeoutHelper {
    type Data;

    // Required method
    fn timeout(
        self,
        max: Duration,
    ) -> impl Future<Output = Result<Self::Data, SetupError>>;
}

Required Associated Types§

Required Methods§

Source

fn timeout( self, max: Duration, ) -> impl Future<Output = Result<Self::Data, SetupError>>

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§