Struct log_analyzer::stores::analysis_store::InMemmoryAnalysisStore
source · [−]pub struct InMemmoryAnalysisStore { /* private fields */ }Implementations
Trait Implementations
sourceimpl AnalysisStore for InMemmoryAnalysisStore
impl AnalysisStore for InMemmoryAnalysisStore
sourcefn add_search_lines(&self, lines: &[LogLine])
fn add_search_lines(&self, lines: &[LogLine])
Add a list of searched lines
sourcefn add_search_query(&self, query: &str)
fn add_search_query(&self, query: &str)
Change the search query
sourcefn get_search_query(&self) -> Option<String>
fn get_search_query(&self) -> Option<String>
Get the current search query
sourcefn fetch_log(&self) -> RwLockReadGuard<'_, RawRwLock, Vec<LogLine>>
fn fetch_log(&self) -> RwLockReadGuard<'_, RawRwLock, Vec<LogLine>>
Get a RwLock to the current processed log to avoid copying
sourcefn fetch_search(&self) -> RwLockReadGuard<'_, RawRwLock, Vec<LogLine>>
fn fetch_search(&self) -> RwLockReadGuard<'_, RawRwLock, Vec<LogLine>>
Get a RwLock to the current searched log to avoid copying
sourcefn get_log_lines(&self, from: usize, to: usize) -> Vec<LogLine>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn get_log_lines(&self, from: usize, to: usize) -> Vec<LogLine>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get a copy of a window of lines. Is safe to query out of bounds
sourcefn get_search_lines(&self, from: usize, to: usize) -> Vec<LogLine>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn get_search_lines(&self, from: usize, to: usize) -> Vec<LogLine>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get a copy of a window of search lines. Is safe to query out of bounds
sourcefn get_log_lines_containing(
&self,
index: usize,
elements: usize
) -> (Vec<LogLine>, usize, usize)
fn get_log_lines_containing(
&self,
index: usize,
elements: usize
) -> (Vec<LogLine>, usize, usize)
Get a window of elements number of lines centered around the target line Read more
sourcefn get_search_lines_containing(
&self,
index: usize,
elements: usize
) -> (Vec<LogLine>, usize, usize)
fn get_search_lines_containing(
&self,
index: usize,
elements: usize
) -> (Vec<LogLine>, usize, usize)
Get a window of elements number of lines centered around the target line Read more
sourcefn reset_search(&self)
fn reset_search(&self)
Clear the searched log
sourcefn get_total_filtered_lines(&self) -> usize
fn get_total_filtered_lines(&self) -> usize
Count the total number of lines
sourcefn get_total_searched_lines(&self) -> usize
fn get_total_searched_lines(&self) -> usize
Count the total number of search lines
Auto Trait Implementations
impl !RefUnwindSafe for InMemmoryAnalysisStore
impl Send for InMemmoryAnalysisStore
impl Sync for InMemmoryAnalysisStore
impl Unpin for InMemmoryAnalysisStore
impl UnwindSafe for InMemmoryAnalysisStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more