#[repr(transparent)]
pub struct JournalReader { /* private fields */ }
Expand description

A reader for systemd journal.

Supports read, next, previous, and seek operations.

Implementations

Open the systemd journal for reading.

pub fn next_entry(&mut self) -> Result<Option<JournalEntry>>

Read the next entry from the journal. Returns Ok(None) if there are no more entrys to read.

pub fn previous_entry(&mut self) -> Result<Option<JournalEntry>>

Read the previous entry from the journal. Returns Ok(None) if there are no more entries to read.

Seek to a specific position in journal. On success, returns a cursor to the current entry.

Sync wait until timeout for new journal messages

Sync wait forever for new journal messages

Create a blocking Iterator from the reader.

Create a blocking Iterator with a timeout of timeout.

Create a non blocking Iterator.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.