Skip to main content

Source

Trait Source 

Source
pub trait Source:
    Clone
    + Send
    + 'static {
    // Required methods
    fn name(&self) -> &str;
    fn size(&self) -> u64;

    // Provided method
    fn checksum(&self) -> Option<Checksum> { ... }
}
Expand description

Describes a caller’s work item to the engine: its destination name, byte size, and optional checksum. The item value itself is cloned into Progress events and handed back in terminal Outcomes. name is also the item’s label in Outcome’s Display.

Required Methods§

Source

fn name(&self) -> &str

Source

fn size(&self) -> u64

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§