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§
Sourcefn execute(&self, test: &FeatureTest) -> ExecutionResult
fn execute(&self, test: &FeatureTest) -> ExecutionResult
Execute a feature test and return the result
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if this backend is available/enabled
Provided Methods§
Sourcefn unsupported_features(&self) -> &'static [&'static str]
fn unsupported_features(&self) -> &'static [&'static str]
Get list of features this backend doesn’t support yet