Skip to main content

TransferViewAlg

Trait TransferViewAlg 

Source
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§

Source

fn transferred(&self) -> u64

Observes retrieved bytes.

Source

fn transfer_total(&self) -> Option<u64>

Observes expected bytes when the source states them.

Source

fn transfer_elapsed(&self) -> Duration

Observes elapsed transfer time.

Source

fn transfer_complete(&self) -> bool

Observes whether the transfer reached terminal success.

Source

fn transfer_destination(&self) -> Option<&Path>

Observes the path publication will produce once an interpreter states one.

Source

fn transfer_summary(&self) -> Option<&str>

Observes the concise reason a transfer failed.

Source

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".

Implementors§