pub struct PostgresEventArchive { /* private fields */ }Implementations§
Source§impl PostgresEventArchive
impl PostgresEventArchive
pub fn new(client: PostgresStoreClient) -> Self
pub fn append_frame( &self, frame: EventFrame, ) -> Result<ArchiveCursor, AgentError>
Trait Implementations§
Source§impl Clone for PostgresEventArchive
impl Clone for PostgresEventArchive
Source§fn clone(&self) -> PostgresEventArchive
fn clone(&self) -> PostgresEventArchive
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 EventArchive for PostgresEventArchive
impl EventArchive for PostgresEventArchive
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 PostgresEventArchive
impl EventArchiveReader for PostgresEventArchive
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 !RefUnwindSafe for PostgresEventArchive
impl !UnwindSafe for PostgresEventArchive
impl Freeze for PostgresEventArchive
impl Send for PostgresEventArchive
impl Sync for PostgresEventArchive
impl Unpin for PostgresEventArchive
impl UnsafeUnpin for PostgresEventArchive
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