Enum CompactOutcome
enum CompactOutcome {
NotRenamed(Error),
Renamed(Result<(JournalFile, bool)>),
}Expand description
Result of Writer::compact’s blocking work, distinguishing whether the
rename that makes the new file live was reached: that is the point past
which the writer’s old handle is stale and must be replaced (or, on
failure to do so, discarded) rather than reused.
Variants§
NotRenamed(Error)
The temp file was never renamed over the journal; the writer’s existing handle is untouched and still valid.
Renamed(Result<(JournalFile, bool)>)
The rename succeeded; the writer needs the freshly opened file (and its header-written state) to replace its now-stale handle.
Auto Trait Implementations§
impl Freeze for CompactOutcome
impl !RefUnwindSafe for CompactOutcome
impl Send for CompactOutcome
impl Sync for CompactOutcome
impl Unpin for CompactOutcome
impl !UnwindSafe for CompactOutcome
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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