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>;
}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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".