pub trait LongRunningActionExt: ActionType {
// Required methods
fn suspend() -> Self;
fn resume() -> Self;
fn complete() -> Self;
fn is_suspend(&self) -> bool;
fn is_resume(&self) -> bool;
fn is_complete(&self) -> bool;
}Expand description
Extension trait for ActionType to support long-running specific actions
Required Methods§
Sourcefn is_suspend(&self) -> bool
fn is_suspend(&self) -> bool
Check if this is a suspend action
Sourcefn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Check if this is a complete action
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.