pub struct NexusSource { /* private fields */ }Expand description
NexusMods download source.
Requires a Nexus Premium account and API key.
Implementations§
Trait Implementations§
Source§impl DownloadSource for NexusSource
impl DownloadSource for NexusSource
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 NexusSource
impl !RefUnwindSafe for NexusSource
impl Send for NexusSource
impl Sync for NexusSource
impl Unpin for NexusSource
impl UnsafeUnpin for NexusSource
impl !UnwindSafe for NexusSource
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