pub struct SqliteEventArchive { /* private fields */ }Expand description
SQLite-backed event archive.
Implementations§
Source§impl SqliteEventArchive
impl SqliteEventArchive
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self, AgentError>
pub fn open(path: impl AsRef<Path>) -> Result<Self, AgentError>
Opens or creates a SQLite event archive.
Sourcepub fn append_frame(
&self,
frame: EventFrame,
) -> Result<ArchiveCursor, AgentError>
pub fn append_frame( &self, frame: EventFrame, ) -> Result<ArchiveCursor, AgentError>
Appends one event frame and assigns an archive cursor when absent.
Trait Implementations§
Source§impl Clone for SqliteEventArchive
impl Clone for SqliteEventArchive
Source§fn clone(&self) -> SqliteEventArchive
fn clone(&self) -> SqliteEventArchive
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 moreSource§impl Debug for SqliteEventArchive
impl Debug for SqliteEventArchive
Source§impl EventArchive for SqliteEventArchive
impl EventArchive for SqliteEventArchive
Source§fn replay_filtered_from_cursor(
&self,
filter: CompiledEventFilter,
cursor: ArchiveCursor,
) -> Result<AgentEventStream, AgentError>
fn replay_filtered_from_cursor( &self, filter: CompiledEventFilter, cursor: ArchiveCursor, ) -> Result<AgentEventStream, AgentError>
Replays archived frames matching a compiled envelope filter from the
archive cursor.
Implementations read archived event frames from the requested cursor and return a
stream; replaying must not publish new events or append journal records.
Source§impl EventArchiveReader for SqliteEventArchive
impl EventArchiveReader for SqliteEventArchive
Source§fn frames_after(
&self,
cursor: Option<ArchiveCursor>,
) -> Result<Vec<EventFrame>, AgentError>
fn frames_after( &self, cursor: Option<ArchiveCursor>, ) -> Result<Vec<EventFrame>, AgentError>
Returns archived frames after the optional archive cursor.
Auto Trait Implementations§
impl Freeze for SqliteEventArchive
impl RefUnwindSafe for SqliteEventArchive
impl Send for SqliteEventArchive
impl Sync for SqliteEventArchive
impl Unpin for SqliteEventArchive
impl UnsafeUnpin for SqliteEventArchive
impl UnwindSafe for SqliteEventArchive
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