pub struct Logger { /* private fields */ }
Implementations§
source§impl Logger
impl Logger
pub fn init(config: Config) -> DbResult<Self>
pub fn get_bytes(&self) -> DbResult<Vec<u8>>
pub fn get_entries<'a>(&self, buffer: &'a [u8]) -> DbResult<Vec<LogFormat<'a>>>
pub fn begin_tx(&self) -> DbResult<TxHandle>
pub fn end_tx(&self) -> DbResult<()>
pub fn write(&self, id: TableId, data: Vec<u8>) -> DbResult<()>
pub fn header(id: TableId, data: &[u8]) -> [u8; 5]
pub fn log_entry(id: TableId, data: Vec<u8>) -> Vec<u8>
pub fn compact_log(&self, data: Vec<u8>) -> DbResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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