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
source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<TraitVariantBlanketType> LocalSnapshotStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SnapshotStore + Clone + 'static,
impl<TraitVariantBlanketType> LocalSnapshotStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SnapshotStore + Clone + 'static,
type Id = <TraitVariantBlanketType as SnapshotStore>::Id
type Error = <TraitVariantBlanketType as SnapshotStore>::Error
source§async fn save<S, ToBytes, ToBytesError>(
&mut self,
id: &<TraitVariantBlanketType as LocalSnapshotStore>::Id,
seq_no: NonZero<u64>,
state: &S,
to_bytes: &ToBytes
) -> Result<(), <TraitVariantBlanketType as LocalSnapshotStore>::Error>
async fn save<S, ToBytes, ToBytesError>( &mut self, id: &<TraitVariantBlanketType as LocalSnapshotStore>::Id, seq_no: NonZero<u64>, state: &S, to_bytes: &ToBytes ) -> Result<(), <TraitVariantBlanketType as LocalSnapshotStore>::Error>
Save the given snapshot state for the given entity ID and sequence number.