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§
Provided Methods§
Sourcefn supports_replacement(&self) -> bool
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§
impl ReplaceableTransitionLogStore for FileCheckpointPagedLog
impl ReplaceableTransitionLogStore for FileTransitionLog
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.