pub struct JsonlLogReader { /* private fields */ }Expand description
Independent JSONL reader for historical query and follow operations.
Implementations§
Source§impl JsonlLogReader
impl JsonlLogReader
Sourcepub fn new(active_log_path: PathBuf) -> Self
pub fn new(active_log_path: PathBuf) -> Self
Creates a reader over the active JSONL log path and its rotation set.
Sourcepub fn query(&self, query: &LogQuery) -> Result<LogSnapshot, QueryError>
pub fn query(&self, query: &LogQuery) -> Result<LogSnapshot, QueryError>
Queries the current active JSONL log and visible rotation set.
Sourcepub fn follow(&self, query: LogQuery) -> Result<LogFollowSession, QueryError>
pub fn follow(&self, query: LogQuery) -> Result<LogFollowSession, QueryError>
Starts a tail-style follow session beginning at the end of the current visible log set.
Trait Implementations§
Source§impl Clone for JsonlLogReader
impl Clone for JsonlLogReader
Source§fn clone(&self) -> JsonlLogReader
fn clone(&self) -> JsonlLogReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsonlLogReader
impl RefUnwindSafe for JsonlLogReader
impl Send for JsonlLogReader
impl Sync for JsonlLogReader
impl Unpin for JsonlLogReader
impl UnsafeUnpin for JsonlLogReader
impl UnwindSafe for JsonlLogReader
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