pub trait TransitionLogStore {
// Required methods
fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>;
fn read_log_entries(&mut self) -> Result<Vec<String>, LinkError>;
fn flush_log(&mut self) -> Result<(), LinkError>;
// Provided method
fn supports_durable_flush(&self) -> bool { ... }
}Expand description
Append-only store of serialized transitions and recovery markers.
Required Methods§
Sourcefn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
Appends one entry. Entries never contain newlines.
Provided Methods§
Sourcefn supports_durable_flush(&self) -> bool
fn supports_durable_flush(&self) -> bool
Whether flush requests persistent storage. Custom/volatile logs default to false; this describes an adapter, not the reliability of its hardware.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".