pub struct EventLog { /* private fields */ }Implementations§
Source§impl EventLog
impl EventLog
pub fn open_read_only( path: PathBuf, session_id: SessionId, ) -> Result<Arc<Self>, EventLogError>
pub fn events(&self) -> Vec<StoredEvent>
pub fn event_snapshot(&self) -> Arc<[StoredEvent]> ⓘ
pub fn all_events(&self) -> Vec<StoredEvent>
pub fn last_event(&self) -> Option<StoredEvent>
pub fn diagnostics(&self) -> &[EventLoadDiagnostic]
pub fn physical_tip_seq(&self) -> u64
pub fn path(&self) -> &Path
pub fn is_persisted(&self) -> bool
pub fn mark_persisted(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnsafeUnpin for EventLog
impl UnwindSafe for EventLog
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