pub enum DownloadStatus {
Cached {
path: PathBuf,
},
Downloaded {
path: PathBuf,
sha256: String,
},
}Expand description
Outcome of download_if_missing.
Variants§
Cached
File already present (and hash-verified when expected_sha256 given).
Downloaded
Freshly downloaded; includes the computed SHA-256 hex digest.
Trait Implementations§
Source§impl Clone for DownloadStatus
impl Clone for DownloadStatus
Source§impl Debug for DownloadStatus
impl Debug for DownloadStatus
impl Eq for DownloadStatus
Source§impl PartialEq for DownloadStatus
impl PartialEq for DownloadStatus
impl StructuralPartialEq for DownloadStatus
Auto Trait Implementations§
impl Forget for DownloadStatus
impl Freeze for DownloadStatus
impl Move for DownloadStatus
impl RefUnwindSafe for DownloadStatus
impl Send for DownloadStatuswhere
RawVecInner: Send,
impl Sync for DownloadStatuswhere
RawVecInner: Sync,
impl Unpin for DownloadStatus
impl UnsafeUnpin for DownloadStatus
impl UnwindSafe for DownloadStatuswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.