Skip to main content

ExecutionBase

Trait ExecutionBase 

Source
pub trait ExecutionBase: Send + Sync {
    // Required method
    fn context_type(&self) -> &'static str;

    // Provided method
    fn is_ready(&self) -> bool { ... }
}
Expand description

Base trait for all execution contexts

Required Methods§

Source

fn context_type(&self) -> &'static str

Get context type name for debugging

Provided Methods§

Source

fn is_ready(&self) -> bool

Check if the context is ready for execution

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§