pub struct SnapshotId { /* private fields */ }Expand description
A snapshot exported by a running transaction (pg_export_snapshot()),
for another transaction to read the same data with
ConfigBuilder::snapshot.
Get one from a transaction’s snapshot(), or parse the text form
with SnapshotId::new. It stays importable only while the exporting
transaction is open; after that PostgreSQL rejects it. The id is a
small Copy value, so it can be handed to other threads and tasks.
Implementations§
Source§impl SnapshotId
impl SnapshotId
Trait Implementations§
Source§impl Clone for SnapshotId
impl Clone for SnapshotId
impl Copy for SnapshotId
Source§impl Debug for SnapshotId
impl Debug for SnapshotId
Source§impl Display for SnapshotId
impl Display for SnapshotId
impl Eq for SnapshotId
Source§impl Hash for SnapshotId
impl Hash for SnapshotId
Source§impl PartialEq for SnapshotId
impl PartialEq for SnapshotId
impl StructuralPartialEq for SnapshotId
Auto Trait Implementations§
impl Freeze for SnapshotId
impl RefUnwindSafe for SnapshotId
impl Send for SnapshotId
impl Sync for SnapshotId
impl Unpin for SnapshotId
impl UnsafeUnpin for SnapshotId
impl UnwindSafe for SnapshotId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<List> ListIncludes<Nil, ()> for List
impl<Mk> MarkerAggValidFor<()> for Mk
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more