Skip to main content

Runner

Trait Runner 

Source
pub trait Runner {
    // Required method
    fn run(&self, argv: &[String]) -> Result<(), String>;
}
Expand description

The subprocess seam under ReleaseFetch: run an argv, folding a spawn failure and a non-zero exit into one prose reason.

Required Methods§

Source

fn run(&self, argv: &[String]) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<R: Runner + ?Sized> Runner for &R

A borrowed runner runs the same way, so a caller can keep and inspect its own.

Source§

fn run(&self, argv: &[String]) -> Result<(), String>

Implementors§