pub enum ReaderBounds {
Live,
Snapshot,
}Variants§
Live
Systemd-style mutable reader bounds.
The reader keeps a cached file size and refreshes it only when a read would go beyond the cached end of file, matching libsystemd’s active journal behavior without a metadata syscall on every object read.
Snapshot
Immutable reader bounds.
The reader fixes the file size at open time, like
SD_JOURNAL_ASSUME_IMMUTABLE, for polling/query consumers that do not
need to observe appends during the current scan.
Trait Implementations§
Source§impl Clone for ReaderBounds
impl Clone for ReaderBounds
Source§fn clone(&self) -> ReaderBounds
fn clone(&self) -> ReaderBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReaderBounds
Source§impl Debug for ReaderBounds
impl Debug for ReaderBounds
Source§impl Default for ReaderBounds
impl Default for ReaderBounds
impl Eq for ReaderBounds
Source§impl PartialEq for ReaderBounds
impl PartialEq for ReaderBounds
Source§fn eq(&self, other: &ReaderBounds) -> bool
fn eq(&self, other: &ReaderBounds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReaderBounds
Auto Trait Implementations§
impl Freeze for ReaderBounds
impl RefUnwindSafe for ReaderBounds
impl Send for ReaderBounds
impl Sync for ReaderBounds
impl Unpin for ReaderBounds
impl UnsafeUnpin for ReaderBounds
impl UnwindSafe for ReaderBounds
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