pub struct NoRecord;Expand description
What: A recorder that writes nothing, for installations whose caller keeps no durable state. Why: Such an installation is not crash-safe; it exists so the installer can be exercised before the journal lands.
In TS you’d write (pseudocode):
// no journal stateTrait Implementations§
Source§impl InstallRecorder for NoRecord
impl InstallRecorder for NoRecord
Source§fn record_intents(
&mut self,
_relative_paths: &[String],
) -> Result<(), WorktreeCopyError>
fn record_intents( &mut self, _relative_paths: &[String], ) -> Result<(), WorktreeCopyError>
Accepts the intent without storing it.
Source§fn record_creations(
&mut self,
_entries: &[InstalledPath],
) -> Result<(), WorktreeCopyError>
fn record_creations( &mut self, _entries: &[InstalledPath], ) -> Result<(), WorktreeCopyError>
Accepts the creations without storing them.
Auto Trait Implementations§
impl Freeze for NoRecord
impl RefUnwindSafe for NoRecord
impl Send for NoRecord
impl Sync for NoRecord
impl Unpin for NoRecord
impl UnsafeUnpin for NoRecord
impl UnwindSafe for NoRecord
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