pub(crate) trait CommandSuspension<S>: Send + 'staticwhere
S: ExecutionCommandSource,{
// Required method
fn poll(&mut self) -> CommandSuspensionPoll<S>;
// Provided methods
fn order(&self) -> CommandSuspensionOrder { ... }
fn cancel(&mut self) { ... }
}Expand description
Cross-tick work that eventually produces the next action for the same command frame.
Required Methods§
fn poll(&mut self) -> CommandSuspensionPoll<S>
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".