pub struct GitHubSource { /* private fields */ }Expand description
GitHub Releases download source.
Implementations§
Trait Implementations§
Source§impl DownloadSource for GitHubSource
impl DownloadSource for GitHubSource
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 GitHubSource
impl !RefUnwindSafe for GitHubSource
impl Send for GitHubSource
impl Sync for GitHubSource
impl Unpin for GitHubSource
impl UnsafeUnpin for GitHubSource
impl !UnwindSafe for GitHubSource
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