pub enum ResumableDownloadDest {
Shared {
dest: PathBuf,
lock: File,
},
Private(PathBuf),
}Expand description
Where to download when several processes share one resumable cache slot.
Variants§
The shared dest; hold lock until discard_download on it finishes.
Private(PathBuf)
A one-off path in the cache directory; safe to use without locking.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ResumableDownloadDest
impl Freeze for ResumableDownloadDest
impl RefUnwindSafe for ResumableDownloadDest
impl Send for ResumableDownloadDest
impl Sync for ResumableDownloadDest
impl Unpin for ResumableDownloadDest
impl UnsafeUnpin for ResumableDownloadDest
impl UnwindSafe for ResumableDownloadDest
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