pub struct JournalEventChunk {
pub info: JournalEventChunkInfo,
pub what_grab: WhatGrab,
/* private fields */
}Fields§
§info: JournalEventChunkInfo§what_grab: WhatGrabImplementations§
Source§impl JournalEventChunk
impl JournalEventChunk
pub fn new(capacity: usize, what_grab: WhatGrab) -> Self
pub fn new_info( capacity: usize, info: JournalEventChunkInfo, what_grab: WhatGrab, ) -> Self
pub fn error(what_grab: WhatGrab) -> Self
pub fn push(&mut self, event: JournalEvent)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, JournalEvent>
pub fn last(&self) -> Option<&JournalEvent>
pub fn set_info(&mut self, info: JournalEventChunkInfo)
pub fn info(&self) -> JournalEventChunkInfo
pub fn first(&self) -> Option<&JournalEvent>
pub fn times(&self) -> Option<(u64, u64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JournalEventChunk
impl RefUnwindSafe for JournalEventChunk
impl Send for JournalEventChunk
impl Sync for JournalEventChunk
impl Unpin for JournalEventChunk
impl UnsafeUnpin for JournalEventChunk
impl UnwindSafe for JournalEventChunk
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