Struct raft_engine::internals::PurgeHook
source · pub struct PurgeHook { /* private fields */ }Trait Implementations§
source§impl EventListener for PurgeHook
impl EventListener for PurgeHook
source§fn post_new_log_file(&self, file_id: FileId)
fn post_new_log_file(&self, file_id: FileId)
Called after a new log file is created.
source§fn on_append_log_file(&self, handle: FileBlockHandle)
fn on_append_log_file(&self, handle: FileBlockHandle)
Called before a
LogBatch has been written into a log file.source§fn post_apply_memtables(&self, file_id: FileId)
fn post_apply_memtables(&self, file_id: FileId)
source§fn first_file_not_ready_for_purge(&self, queue: LogQueue) -> Option<FileSeq>
fn first_file_not_ready_for_purge(&self, queue: LogQueue) -> Option<FileSeq>
Returns the oldest file sequence number that are not ready to be purged.
source§fn post_purge(&self, file_id: FileId)
fn post_purge(&self, file_id: FileId)
Called after a log file is purged.
Auto Trait Implementations§
impl !RefUnwindSafe for PurgeHook
impl Send for PurgeHook
impl Sync for PurgeHook
impl Unpin for PurgeHook
impl UnwindSafe for PurgeHook
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