pub trait TransferViewAlg {
// Required methods
fn transferred(&self) -> u64;
fn transfer_total(&self) -> Option<u64>;
fn transfer_elapsed(&self) -> Duration;
fn transfer_complete(&self) -> bool;
fn transfer_destination(&self) -> Option<&Path>;
fn transfer_summary(&self) -> Option<&str>;
fn transfer_detail(&self) -> Option<&str>;
}Expand description
Specifies what one transfer states about its own progress.
Required Methods§
Sourcefn transferred(&self) -> u64
fn transferred(&self) -> u64
Observes retrieved bytes.
Sourcefn transfer_total(&self) -> Option<u64>
fn transfer_total(&self) -> Option<u64>
Observes expected bytes when the source states them.
Sourcefn transfer_elapsed(&self) -> Duration
fn transfer_elapsed(&self) -> Duration
Observes elapsed transfer time.
Sourcefn transfer_complete(&self) -> bool
fn transfer_complete(&self) -> bool
Observes whether the transfer reached terminal success.
Sourcefn transfer_destination(&self) -> Option<&Path>
fn transfer_destination(&self) -> Option<&Path>
Observes the path publication will produce once an interpreter states one.
Sourcefn transfer_summary(&self) -> Option<&str>
fn transfer_summary(&self) -> Option<&str>
Observes the concise reason a transfer failed.
Sourcefn transfer_detail(&self) -> Option<&str>
fn transfer_detail(&self) -> Option<&str>
Observes the diagnostic accompanying a failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".