pub struct SnapshotGate(/* private fields */);Expand description
Opaque completion token riding on ReplicaApply::SnapshotEnd.
The shard drops it only AFTER the snapshot swap has landed in its
Store, so the embedder can hang side effects (e.g. lowering a
-LOADING read gate) on the token’s Drop and know they fire
once the new keyspace — not the one about to be replaced — is
what readers will see. Clones share one inner value: in broadcast
(single-source) mode every shard holds a clone and the Drop
fires when the LAST shard finishes its load.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotGate
impl Clone for SnapshotGate
Source§fn clone(&self) -> SnapshotGate
fn clone(&self) -> SnapshotGate
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SnapshotGate
impl !UnwindSafe for SnapshotGate
impl Freeze for SnapshotGate
impl Send for SnapshotGate
impl Sync for SnapshotGate
impl Unpin for SnapshotGate
impl UnsafeUnpin for SnapshotGate
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