pub struct PostgresSnapshotStore { /* private fields */ }
Expand description
A SnapshotStore implementation based on PostgreSQL.
Implementations§
Trait Implementations§
source§impl Clone for PostgresSnapshotStore
impl Clone for PostgresSnapshotStore
source§fn clone(&self) -> PostgresSnapshotStore
fn clone(&self) -> PostgresSnapshotStore
Returns a copy of the value. Read more
1.0.0 · 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 PostgresSnapshotStore
impl Debug for PostgresSnapshotStore
source§impl SnapshotStore for PostgresSnapshotStore
impl SnapshotStore for PostgresSnapshotStore
type Error = Error
source§async fn save<S, ToBytes, ToBytesError>(
&mut self,
id: Uuid,
seq_no: SeqNo,
state: S,
state_to_bytes: &ToBytes
) -> Result<(), Self::Error>
async fn save<S, ToBytes, ToBytesError>( &mut self, id: Uuid, seq_no: SeqNo, state: S, state_to_bytes: &ToBytes ) -> Result<(), Self::Error>
Save the given snapshot state for the given entity ID and sequence number.
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresSnapshotStore
impl Send for PostgresSnapshotStore
impl Sync for PostgresSnapshotStore
impl Unpin for PostgresSnapshotStore
impl !UnwindSafe for PostgresSnapshotStore
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