Skip to main content

BinaryDownloader

Trait BinaryDownloader 

Source
pub trait BinaryDownloader {
    // Required method
    fn download(
        &self,
        release: &ReleaseInfo,
    ) -> Result<DownloadResult, UpgradeError>;
}
Expand description

Trait for binary download. Implementations provide the actual download or test fixture data.

Required Methods§

Source

fn download( &self, release: &ReleaseInfo, ) -> Result<DownloadResult, UpgradeError>

Download the upgrade artifact and return executable bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§