pub struct InstallLog { /* private fields */ }Expand description
What: The append handle of one log. Why: Each append is synced before the caller mutates the destination, so a crash leaves the claim on disk.
In TS you’d write (pseudocode):
type InstallLog = { appendIntents(paths): Promise<void>; appendCreations(entries): Promise<void> };Implementations§
Source§impl InstallLog
impl InstallLog
Sourcepub fn append_intents(
&mut self,
relative_paths: &[String],
) -> Result<(), WorktreeCopyError>
pub fn append_intents( &mut self, relative_paths: &[String], ) -> Result<(), WorktreeCopyError>
Durably appends the selected paths one batch is about to create.
Sourcepub fn append_creations(
&mut self,
entries: &[InstalledPath],
) -> Result<(), WorktreeCopyError>
pub fn append_creations( &mut self, entries: &[InstalledPath], ) -> Result<(), WorktreeCopyError>
Durably appends the identities of the paths one batch created.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallLog
impl RefUnwindSafe for InstallLog
impl Send for InstallLog
impl Sync for InstallLog
impl Unpin for InstallLog
impl UnsafeUnpin for InstallLog
impl UnwindSafe for InstallLog
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