Skip to main content

SignedDownloader

Trait SignedDownloader 

Source
pub trait SignedDownloader: Send + Sync {
    // Required method
    fn run_signed_download_url(
        &self,
        request: SignedDownloadUrlRequest<'_, Self>,
    ) -> impl Future<Output = Result<SignedDownloadUrl, Error>> + Send;

    // Provided method
    fn signed_download_url(
        &self,
        key: &str,
    ) -> SignedDownloadUrlRequest<'_, Self> { ... }
}
Expand description

Make signed download URLs. Implemented by a BucketRef granting perms::SignedDownloader.

Required Methods§

Source

fn run_signed_download_url( &self, request: SignedDownloadUrlRequest<'_, Self>, ) -> impl Future<Output = Result<SignedDownloadUrl, Error>> + Send

Runs the request signed_download_url made, when it is awaited.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P: BucketPerms> SignedDownloader for BucketRef<P>
where P::SignedDownload: Granted<SignedDownloader>,