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§
Sourcefn download(
&self,
release: &ReleaseInfo,
) -> Result<DownloadResult, UpgradeError>
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".