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 !Freeze for PurgeHook
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more