Struct write_journal::WriteJournal
source · pub struct WriteJournal { /* private fields */ }Implementations§
source§impl WriteJournal
impl WriteJournal
pub fn new( device: SeekableAsyncFile, offset: u64, capacity: u64, commit_delay: Duration ) -> Self
pub fn generate_blank_state(&self) -> Vec<u8>
pub async fn format_device(&self)
pub async fn recover(&self)
pub fn begin_transaction(&self) -> Transaction
pub async fn commit(&self, txn: Transaction)
sourcepub async fn read_with_overlay(&self, offset: u64, len: u64) -> Vec<u8>
pub async fn read_with_overlay(&self, offset: u64, len: u64) -> Vec<u8>
WARNING: Use this function with caution, it’s up to the caller to avoid the potential issues with misuse, including logic incorrectness, cache incoherency, and memory leaking. Carefully read notes/Overlay.md before using the overlay.