pub trait Background: Send + Sync {
// Required methods
fn spawn(&self, task: BoxFuture<'static, ()>) -> bool;
fn sleep(&self, pause: Duration) -> BoxFuture<'static, ()>;
}Expand description
Where the preview’s background asking runs, and how it waits between tries.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".