Skip to main content

RetryStart

Trait RetryStart 

Source
pub trait RetryStart {
    // Required methods
    fn spawn_retrying(&mut self) -> Result<Child>;
    fn output_retrying(&mut self) -> Result<Output>;
    fn status_retrying(&mut self) -> Result<ExitStatus>;
}
Expand description

Starts of a command that ride out a short shortage of processes.

Required Methods§

Source

fn spawn_retrying(&mut self) -> Result<Child>

Start the child without waiting for it.

Source

fn output_retrying(&mut self) -> Result<Output>

Start the child and collect its output.

Source

fn status_retrying(&mut self) -> Result<ExitStatus>

Start the child with inherited streams and wait for it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RetryStart for Command

The three ways of starting a command, each retried when the start is refused.

Source§

fn spawn_retrying(&mut self) -> Result<Child>

Command::spawn, retried.

Source§

fn output_retrying(&mut self) -> Result<Output>

Command::output, retried. A refusal comes only from the start, so no child has run when it is retried.

Source§

fn status_retrying(&mut self) -> Result<ExitStatus>

Command::status, retried.

Implementors§