Backend

Trait Backend 

Source
pub trait Backend:
    Send
    + Sync
    + Debug {
    // Required methods
    fn run_cmd(&self, cmd: Cmd) -> Result<RunResult>;
    fn name(&self) -> &str;
    fn is_available(&self) -> bool;
    fn supports_hermetic(&self) -> bool;
    fn supports_deterministic(&self) -> bool;
}
Expand description

Trait for backend execution environments

Required Methods§

Source

fn run_cmd(&self, cmd: Cmd) -> Result<RunResult>

Run a command in the backend

Source

fn name(&self) -> &str

Get the name of the backend

Source

fn is_available(&self) -> bool

Check if the backend is available

Source

fn supports_hermetic(&self) -> bool

Check if the backend supports hermetic execution

Source

fn supports_deterministic(&self) -> bool

Check if the backend supports deterministic execution

Implementors§