Skip to main content

SyncProgramExt

Trait SyncProgramExt 

Source
pub trait SyncProgramExt<This>{
    // Required method
    fn run_sync(
        &self,
        command: &This::Command,
    ) -> Result<Vec<This::Change>, This::Error>;
}
Expand description

Derives one whole transfer from starting it, reading it, and finishing it.

Required Methods§

Source

fn run_sync( &self, command: &This::Command, ) -> Result<Vec<This::Change>, This::Error>

Runs one transfer and states every change it named, in the order it named them.

Every line is watched as it arrives, so an interpreter following a transfer sees progress while it runs rather than after it ends.

§Errors

Returns the failure that started, read, or ended the transfer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<This> SyncProgramExt<This> for This

Derives one whole transfer from starting it, reading it, and finishing it.