pub trait SyncReadExt<This>where
This: SyncChangeAlg + SyncObservationAlg,{
// Required methods
fn read_sync_line(&self, line: &str) -> This::Observation;
fn read_sync_change(&self, line: &str) -> Option<This::Change>;
}Expand description
Derives what one line a running transfer wrote states.
Required Methods§
Sourcefn read_sync_line(&self, line: &str) -> This::Observation
fn read_sync_line(&self, line: &str) -> This::Observation
Reads one line the transfer program wrote as what it states.
A change is stated in three fields: the flags naming what happens, the byte count, and the path. Anything else on the stream is progress, or is nothing this specification reads.
Sourcefn read_sync_change(&self, line: &str) -> Option<This::Change>
fn read_sync_change(&self, line: &str) -> Option<This::Change>
Reads one itemized line as the change it denotes, and states nothing for a line naming only that a folder was opened on the way to what is inside it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> SyncReadExt<This> for Thiswhere
This: SyncChangeAlg + SyncObservationAlg,
Derives what one line a running transfer wrote states.