pub struct GoogleDriveSource { /* private fields */ }Expand description
Google Drive download source.
Handles the virus scan warning page for large files.
Implementations§
Trait Implementations§
Source§impl DownloadSource for GoogleDriveSource
impl DownloadSource for GoogleDriveSource
Source§fn can_handle(&self, directive: &DownloadDirective) -> bool
fn can_handle(&self, directive: &DownloadDirective) -> bool
Check if this source can handle the given directive.
Source§async fn resolve(&self, directive: &DownloadDirective) -> Result<DownloadHandle>
async fn resolve(&self, directive: &DownloadDirective) -> Result<DownloadHandle>
Resolve a directive into a download handle with a concrete URL.
Source§async fn download_with_progress(
&self,
handle: DownloadHandle,
dest: &Path,
progress: ProgressCallback,
) -> Result<VerifiedFile>
async fn download_with_progress( &self, handle: DownloadHandle, dest: &Path, progress: ProgressCallback, ) -> Result<VerifiedFile>
Download the file to
dest with progress reporting and verify its hash.Source§fn download(
&self,
handle: DownloadHandle,
dest: &Path,
) -> impl Future<Output = Result<VerifiedFile>> + Send
fn download( &self, handle: DownloadHandle, dest: &Path, ) -> impl Future<Output = Result<VerifiedFile>> + Send
Download the file to
dest and verify its hash (no-op progress).Auto Trait Implementations§
impl Freeze for GoogleDriveSource
impl !RefUnwindSafe for GoogleDriveSource
impl Send for GoogleDriveSource
impl Sync for GoogleDriveSource
impl Unpin for GoogleDriveSource
impl UnsafeUnpin for GoogleDriveSource
impl !UnwindSafe for GoogleDriveSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more