Skip to main content

CommandSuspension

Trait CommandSuspension 

Source
pub(crate) trait CommandSuspension<S>: Send + 'static{
    // 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§

Source

fn poll(&mut self) -> CommandSuspensionPoll<S>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§