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.

Implementations on Foreign Types§

Source§

impl RemoteSource for Url

Source§

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

Source§

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

Implementors§