pub struct EntryRef { /* private fields */ }Expand description
A zero-copy entry view, backed by journal file storage (mmap) when possible.
Implementations§
Source§impl EntryRef
impl EntryRef
Sourcepub fn to_owned(&self) -> EntryOwned
pub fn to_owned(&self) -> EntryOwned
Convert this entry to an owned representation.
Sourcepub fn iter_fields(&self) -> impl Iterator<Item = (&str, &[u8])>
pub fn iter_fields(&self) -> impl Iterator<Item = (&str, &[u8])>
Iterate over all fields (including duplicates) in entry order.
Sourcepub fn realtime_usec(&self) -> u64
pub fn realtime_usec(&self) -> u64
Realtime timestamp, microseconds since UNIX epoch.
Sourcepub fn monotonic_usec(&self) -> u64
pub fn monotonic_usec(&self) -> u64
Monotonic timestamp, microseconds since boot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryRef
impl RefUnwindSafe for EntryRef
impl Send for EntryRef
impl Sync for EntryRef
impl Unpin for EntryRef
impl UnwindSafe for EntryRef
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