pub struct InMemmoryLogStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for InMemmoryLogStore
impl Default for InMemmoryLogStore
Source§impl LogStore for InMemmoryLogStore
impl LogStore for InMemmoryLogStore
Source§fn add_log(
&self,
log_id: &str,
log_source: Arc<Box<dyn LogSource + Send + Sync>>,
format: Option<&String>,
enabled: bool,
)
fn add_log( &self, log_id: &str, log_source: Arc<Box<dyn LogSource + Send + Sync>>, format: Option<&String>, enabled: bool, )
Add a new log to the store
Source§fn add_lines(&self, log_id: &str, lines: &[String]) -> Range<usize>
fn add_lines(&self, log_id: &str, lines: &[String]) -> Range<usize>
Add a many lines to the given log id
Source§fn get_lines(&self, log_id: &str) -> Vec<String>
fn get_lines(&self, log_id: &str) -> Vec<String>
Get a list of all the lines for the requested log. WARNING: clones
Source§fn extract_lines(&self, log_id: &str) -> Vec<String>
fn extract_lines(&self, log_id: &str) -> Vec<String>
Get a list of all the lines for the requested log. WARNING: moves
Source§fn get_logs(&self) -> Vec<(bool, String, Option<String>)>
fn get_logs(&self) -> Vec<(bool, String, Option<String>)>
Get a list of (enabled, log_id, format(if any))
Source§fn get_format(&self, log_id: &str) -> Option<String>
fn get_format(&self, log_id: &str) -> Option<String>
Get the format associated to the given log id
Source§fn get_total_lines(&self) -> usize
fn get_total_lines(&self) -> usize
Get the count of all the lines
Source§fn get_source(&self, id: &str) -> Option<Arc<Box<dyn LogSource + Send + Sync>>>
fn get_source(&self, id: &str) -> Option<Arc<Box<dyn LogSource + Send + Sync>>>
Get the log source associated to the log id
Source§fn toggle_log(&self, log_id: &str)
fn toggle_log(&self, log_id: &str)
Change the enabled state of the given log
Auto Trait Implementations§
impl !Freeze for InMemmoryLogStore
impl !RefUnwindSafe for InMemmoryLogStore
impl Send for InMemmoryLogStore
impl Sync for InMemmoryLogStore
impl Unpin for InMemmoryLogStore
impl !UnwindSafe for InMemmoryLogStore
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