Skip to main content

RemoteSource

Trait RemoteSource 

Source
pub trait RemoteSource {
    // Required methods
    fn filename(&self) -> Result<Cow<'_, str>, Error>;
    fn size(&self) -> Option<u64>;
}

Required Methods§

Source

fn filename(&self) -> Result<Cow<'_, str>, Error>

Return an appropriate filename for the distribution.

Source

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

Return the size of the distribution, if known.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RemoteSource for Url

Source§

fn filename(&self) -> Result<Cow<'_, str>, Error>

Source§

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

Implementors§