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§
fn with_elapsed(
self,
name: &'static str,
threshold: Option<Duration>,
) -> impl Future<Output = T> + Sendwhere
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.