pub(crate) trait CommandResultSuspension: Send + 'static {
// Required method
fn poll(&mut self) -> CommandResultSuspensionPoll;
// Provided methods
fn order(&self) -> CommandSuspensionOrder { ... }
fn cancel(&mut self) { ... }
}Expand description
Cross-tick work that retains ordinary command result and error semantics.
Required Methods§
fn poll(&mut self) -> CommandResultSuspensionPoll
Provided Methods§
fn order(&self) -> CommandSuspensionOrder
fn cancel(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".