pub trait WithTimeout<T, E> {
// Required method
fn with_timeout(
self,
name: &'static str,
timeout: Duration,
) -> impl Future<Output = Result<T>> + Send
where Self: Future<Output = Result<T, E>>;
}
Required Methods§
fn with_timeout( self, name: &'static str, timeout: Duration, ) -> impl Future<Output = Result<T>> + Send
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.