pub struct JournalQuery { /* private fields */ }Expand description
A query builder for reading entries from a Journal.
Implementations§
Source§impl JournalQuery
impl JournalQuery
pub fn match_exact(&mut self, field: &str, value: &[u8]) -> &mut Self
pub fn match_present(&mut self, field: &str) -> &mut Self
pub fn or_group<F>(&mut self, f: F) -> &mut Selfwhere
F: FnOnce(&mut OrGroupBuilder),
pub fn since_realtime(&mut self, usec: u64) -> &mut Self
pub fn until_realtime(&mut self, usec: u64) -> &mut Self
pub fn after_cursor(&mut self, cursor: Cursor) -> &mut Self
Sourcepub fn seek_head(&mut self) -> &mut Self
pub fn seek_head(&mut self) -> &mut Self
Seek to the start of the journal (oldest entries).
This clears any cursor-based starting position and disables reverse.
Sourcepub fn seek_tail(&mut self) -> &mut Self
pub fn seek_tail(&mut self) -> &mut Self
Seek to the end of the journal (newest entries).
This clears any cursor-based starting position and enables reverse.
pub fn reverse(&mut self, reverse: bool) -> &mut Self
pub fn limit(&mut self, n: usize) -> &mut Self
pub fn iter(&self) -> Result<impl Iterator<Item = Result<EntryRef>> + use<>>
pub fn collect_owned(&self) -> Result<Vec<EntryOwned>>
pub fn follow(&self) -> Result<Follow>
Trait Implementations§
Source§impl Clone for JournalQuery
impl Clone for JournalQuery
Source§fn clone(&self) -> JournalQuery
fn clone(&self) -> JournalQuery
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 JournalQuery
impl RefUnwindSafe for JournalQuery
impl Send for JournalQuery
impl Sync for JournalQuery
impl Unpin for JournalQuery
impl UnwindSafe for JournalQuery
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