pub struct PostgresSnapshotStore<I> { /* private fields */ }
Expand description
A SnapshotStore implementation based on PostgreSQL.
Implementations§
Trait Implementations§
Source§impl<I: Clone> Clone for PostgresSnapshotStore<I>
impl<I: Clone> Clone for PostgresSnapshotStore<I>
Source§fn clone(&self) -> PostgresSnapshotStore<I>
fn clone(&self) -> PostgresSnapshotStore<I>
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<I> Debug for PostgresSnapshotStore<I>
impl<I> Debug for PostgresSnapshotStore<I>
Source§impl<I> SnapshotStore for PostgresSnapshotStore<I>
impl<I> SnapshotStore for PostgresSnapshotStore<I>
type Id = I
type Error = Error
Source§async fn save<S, ToBytes, ToBytesError>(
&mut self,
id: &Self::Id,
seq_no: NonZeroU64,
state: &S,
to_bytes: &ToBytes,
) -> Result<(), Self::Error>
async fn save<S, ToBytes, ToBytesError>( &mut self, id: &Self::Id, seq_no: NonZeroU64, state: &S, to_bytes: &ToBytes, ) -> Result<(), Self::Error>
Save the given snapshot state for the given entity ID and sequence number.
Auto Trait Implementations§
impl<I> Freeze for PostgresSnapshotStore<I>
impl<I> !RefUnwindSafe for PostgresSnapshotStore<I>
impl<I> Send for PostgresSnapshotStore<I>where
I: Send,
impl<I> Sync for PostgresSnapshotStore<I>where
I: Sync,
impl<I> Unpin for PostgresSnapshotStore<I>where
I: Unpin,
impl<I> !UnwindSafe for PostgresSnapshotStore<I>
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