Skip to main content

FileLsmJournalStore

Struct FileLsmJournalStore 

Source
pub struct FileLsmJournalStore { /* private fields */ }
Expand description

Owns .lsm-writer before bounded discovery and all child leases. Complete read-only physical/semantic validation precedes constructor repair effects. Close attempts all children before removing the outer fence. An uncertain raw close is cached rather than retried. Never steals crashed ownership. Windows supports file-content sync but advertises no durable namespace.

Implementations§

Source§

impl FileLsmJournalStore

Source

pub fn open( directory: impl AsRef<Path>, options: FileLsmOptions, ) -> Result<Self, LinkError>

Source

pub fn flush(&mut self) -> Result<(), LinkError>

Source

pub fn compact(&mut self) -> Result<(), LinkError>

Source

pub fn close(&mut self) -> Result<(), LinkError>

Does not flush implicitly; successful CAS already acknowledges the WAL.

Trait Implementations§

Source§

impl AtomicJournalStore for FileLsmJournalStore

Source§

fn supports_durable_flush(&self) -> bool

Source§

fn read(&mut self, keys: &[String]) -> Result<Vec<JournalVersion>, LinkError>

Source§

fn compare_exchange( &mut self, keys: &[String], expected: &[JournalVersion], updates: &[Option<Vec<String>>], ) -> Result<bool, LinkError>

Source§

impl Drop for FileLsmJournalStore

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl JournalMaintenanceStore for FileLsmJournalStore

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.