Skip to main content

BackendExecutor

Trait BackendExecutor 

Source
pub trait BackendExecutor: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn execute(&self, test: &FeatureTest) -> ExecutionResult;
    fn is_available(&self) -> bool;

    // Provided method
    fn unsupported_features(&self) -> &'static [&'static str] { ... }
}
Expand description

Trait for executing Shape code across different backends

Required Methods§

Source

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

Human-readable name of this backend

Source

fn execute(&self, test: &FeatureTest) -> ExecutionResult

Execute a feature test and return the result

Source

fn is_available(&self) -> bool

Check if this backend is available/enabled

Provided Methods§

Source

fn unsupported_features(&self) -> &'static [&'static str]

Get list of features this backend doesn’t support yet

Implementors§