pub struct PartialDownload { /* private fields */ }Expand description
An install in flight: ~/.murmur/programs/.partial-<random>/, removed when dropped
uncommitted.
Implementations§
Source§impl PartialDownload
impl PartialDownload
Sourcepub fn begin(store_root: &Path) -> Result<Self, PinnedStoreError>
pub fn begin(store_root: &Path) -> Result<Self, PinnedStoreError>
Creates a fresh owner-only .partial-* folder under store_root.
Sourcepub fn download_path(&self) -> PathBuf
pub fn download_path(&self) -> PathBuf
The file the download streams into.
Sourcepub fn create_download_file(&self) -> Result<File, PinnedStoreError>
pub fn create_download_file(&self) -> Result<File, PinnedStoreError>
Opens Self::download_path for writing, owner-only.
Trait Implementations§
Source§impl Debug for PartialDownload
impl Debug for PartialDownload
Source§impl Drop for PartialDownload
impl Drop for PartialDownload
Auto Trait Implementations§
impl Forget for PartialDownload
impl Freeze for PartialDownload
impl Move for PartialDownload
impl RefUnwindSafe for PartialDownload
impl Send for PartialDownload
impl Sync for PartialDownload
impl Unpin for PartialDownload
impl UnsafeUnpin for PartialDownload
impl UnwindSafe for PartialDownload
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more