pub trait InspectExt: Future + Sized {
// Provided methods
fn inspect(self, name: impl Into<String>) -> TrackedFuture<Self> ⓘ { ... }
fn spawn_tracked(self, name: impl Into<String>) -> JoinHandle<Self::Output>
where Self: Send + 'static,
Self::Output: Send + 'static { ... }
}Expand description
Provided Methods§
Sourcefn inspect(self, name: impl Into<String>) -> TrackedFuture<Self> ⓘ
fn inspect(self, name: impl Into<String>) -> TrackedFuture<Self> ⓘ
Wrap this future with automatic tracking
Sourcefn spawn_tracked(self, name: impl Into<String>) -> JoinHandle<Self::Output>
fn spawn_tracked(self, name: impl Into<String>) -> JoinHandle<Self::Output>
Spawn this future on Tokio with tracking
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.