Struct write_journal::Transaction
source · pub struct Transaction { /* private fields */ }
Implementations§
source§impl Transaction
impl Transaction
pub fn write(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
sourcepub fn write_with_overlay(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
pub fn write_with_overlay(&mut self, offset: u64, data: Vec<u8>) -> &mut Self
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.
Auto Trait Implementations§
impl !RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more