pub trait SyncProgramExt<This>where
This: SyncRunAlg + SyncWatchAlg + SyncChangeAlg + SyncObservationAlg + SyncObservationViewAlg,
This::Change: Clone,{
// 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§
Sourcefn run_sync(
&self,
command: &This::Command,
) -> Result<Vec<This::Change>, This::Error>
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§
impl<This> SyncProgramExt<This> for Thiswhere
This: SyncRunAlg + SyncWatchAlg + SyncChangeAlg + SyncObservationAlg + SyncObservationViewAlg,
This::Change: Clone,
Derives one whole transfer from starting it, reading it, and finishing it.