pub enum RecordSync {
FileAndDirectory,
FileOnly,
Nothing,
}Expand description
What: Which syncs follow a journal record’s write. Why: A record published by link is whole or absent after a kill whatever the level; the level only decides what a power loss may leave.
In TS you’d write (pseudocode):
type RecordSync = 'file-and-directory' | 'file' | 'nothing';Variants§
FileAndDirectory
The file’s bytes, then its directory entry: the record is a barrier that later steps rely on.
FileOnly
The file’s bytes only: a later record’s directory sync makes the entry durable before anything depends on it, and a name a power loss took anyway leaves the state of a record that was never written.
Nothing
Neither: recovery completes or discards the transaction whatever a power loss left of this record.
Trait Implementations§
Source§impl Clone for RecordSync
impl Clone for RecordSync
impl Copy for RecordSync
Source§impl Debug for RecordSync
impl Debug for RecordSync
impl Eq for RecordSync
Source§impl PartialEq for RecordSync
impl PartialEq for RecordSync
impl StructuralPartialEq for RecordSync
Auto Trait Implementations§
impl Freeze for RecordSync
impl RefUnwindSafe for RecordSync
impl Send for RecordSync
impl Sync for RecordSync
impl Unpin for RecordSync
impl UnsafeUnpin for RecordSync
impl UnwindSafe for RecordSync
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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