pub trait Downloader: Send + Sync {
// Required methods
fn download_with(
&self,
key: &str,
options: DownloadOptions,
) -> impl Future<Output = Result<Vec<u8>, Error>> + Send;
fn download_stream(
&self,
key: &str,
options: DownloadOptions,
) -> impl Future<Output = Result<Download, Error>> + Send;
// Provided method
fn download(
&self,
key: &str,
) -> impl Future<Output = Result<Vec<u8>, Error>> + Send { ... }
}Expand description
Download objects. Implemented by a BucketRef granting
perms::Downloader.
Required Methods§
Sourcefn download_with(
&self,
key: &str,
options: DownloadOptions,
) -> impl Future<Output = Result<Vec<u8>, Error>> + Send
fn download_with( &self, key: &str, options: DownloadOptions, ) -> impl Future<Output = Result<Vec<u8>, Error>> + Send
Sourcefn download_stream(
&self,
key: &str,
options: DownloadOptions,
) -> impl Future<Output = Result<Download, Error>> + Send
fn download_stream( &self, key: &str, options: DownloadOptions, ) -> impl Future<Output = Result<Download, Error>> + Send
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".