Skip to main content

SyncReadExt

Trait SyncReadExt 

Source
pub trait SyncReadExt<This>{
    // 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§

Source

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.

Source

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§

Source§

impl<This> SyncReadExt<This> for This

Derives what one line a running transfer wrote states.