Skip to main content

DynFiles

Trait DynFiles 

Source
pub trait DynFiles:
    Send
    + Sync
    + 'static {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn upload_file(
        &self,
        options: UploadFileOptions,
    ) -> BoxFuture<'_, Result<UploadFileResult, ProviderError>>;
    fn supports_get_file_metadata(&self) -> bool;
    fn get_file_metadata(
        &self,
        options: FileReferenceOptions,
    ) -> BoxFuture<'_, Result<FileMetadataResult, ProviderError>>;
    fn supports_download_file(&self) -> bool;
    fn download_file(
        &self,
        options: FileReferenceOptions,
    ) -> BoxFuture<'_, Result<DownloadFileResult, ProviderError>>;
    fn supports_delete_file(&self) -> bool;
    fn delete_file(
        &self,
        options: FileReferenceOptions,
    ) -> BoxFuture<'_, Result<DeleteFileResult, ProviderError>>;
}
Expand description

Object-safe counterpart of Files.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Files> DynFiles for T