pub trait Downloader: Send + Sync {
// Required method
fn run_download(
&self,
request: DownloadRequest<'_, Self>,
) -> impl Future<Output = Result<Download, Error>> + Send;
// Provided method
fn download(&self, key: &str) -> DownloadRequest<'_, Self> { ... }
}Expand description
Download objects. Implemented by a BucketRef granting
perms::Downloader.
Required Methods§
Sourcefn run_download(
&self,
request: DownloadRequest<'_, Self>,
) -> impl Future<Output = Result<Download, Error>> + Send
fn run_download( &self, request: DownloadRequest<'_, Self>, ) -> impl Future<Output = Result<Download, Error>> + Send
Runs the download download made, when it is
awaited. A fake answers with Download::of.
Provided Methods§
Sourcefn download(&self, key: &str) -> DownloadRequest<'_, Self>
fn download(&self, key: &str) -> DownloadRequest<'_, Self>
See Bucket::download.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".