Skip to main content

ReplaceableTransitionLogStore

Trait ReplaceableTransitionLogStore 

Source
pub trait ReplaceableTransitionLogStore: TransitionLogStore {
    // Required method
    fn replace_log_entries(
        &mut self,
        entries: &[String],
    ) -> Result<bool, LinkError>;

    // Provided method
    fn supports_replacement(&self) -> bool { ... }
}
Expand description

Optional replacement of a complete ordered journal under the same exclusive owner. Success publishes all records atomically and durably when advertised. An uncertain failure fences the implementation until actual reopening.

Required Methods§

Source

fn replace_log_entries(&mut self, entries: &[String]) -> Result<bool, LinkError>

Returns false when an identical committed journal needs no replacement. Pending unflushed records must be rejected before changing durable state.

Provided Methods§

Source

fn supports_replacement(&self) -> bool

Dynamic adapters can expose the capability only when their inner log can.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ReplaceableTransitionLogStore for FileCheckpointPagedLog

Source§

impl ReplaceableTransitionLogStore for FileTransitionLog

Source§

impl<L: ReplaceableTransitionLogStore, M: TransitionLogStore> ReplaceableTransitionLogStore for TimedLog<L, M>

Compaction does not touch the timeline: its checkpoint repeats a revision the timeline already holds, and revisions it dropped are then refused by a restore.

Source§

impl<L: ReplaceableTransitionLogStore> ReplaceableTransitionLogStore for DeltaLog<L>

Source§

impl<R: PageDevice, D: PageDevice> ReplaceableTransitionLogStore for CheckpointPagedLog<R, D>