pub struct SuperVersionHandle { /* private fields */ }Expand description
RAII handle for SuperVersion access
This provides a convenient way to access a SuperVersion with automatic cleanup. The handle can be cloned to share access across threads.
Implementations§
Source§impl SuperVersionHandle
impl SuperVersionHandle
Sourcepub fn new(version_set: Arc<VersionSet>) -> Self
pub fn new(version_set: Arc<VersionSet>) -> Self
Create a new handle from a VersionSet
Sourcepub fn with_snapshot(version_set: Arc<VersionSet>, seqno: u64) -> Self
pub fn with_snapshot(version_set: Arc<VersionSet>, seqno: u64) -> Self
Create a handle with a registered snapshot
Sourcepub fn version(&self) -> &SuperVersion
pub fn version(&self) -> &SuperVersion
Get the SuperVersion
Sourcepub fn snapshot_seqno(&self) -> Option<u64>
pub fn snapshot_seqno(&self) -> Option<u64>
Get the snapshot sequence number (if any)
Trait Implementations§
Source§impl Clone for SuperVersionHandle
impl Clone for SuperVersionHandle
Source§impl Drop for SuperVersionHandle
impl Drop for SuperVersionHandle
Auto Trait Implementations§
impl !RefUnwindSafe for SuperVersionHandle
impl !UnwindSafe for SuperVersionHandle
impl Freeze for SuperVersionHandle
impl Send for SuperVersionHandle
impl Sync for SuperVersionHandle
impl Unpin for SuperVersionHandle
impl UnsafeUnpin for SuperVersionHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more