pub struct RangeReadSnapshot { /* private fields */ }Expand description
The catalog and storage identities pinned for one range-worker scan.
Implementations§
Source§impl RangeReadSnapshot
impl RangeReadSnapshot
Sourcepub fn new(
read_at: ReadAtPoint,
schema_manifest_id: impl Into<String>,
) -> Result<Self, StorageRangeConstraintError>
pub fn new( read_at: ReadAtPoint, schema_manifest_id: impl Into<String>, ) -> Result<Self, StorageRangeConstraintError>
Creates the immutable catalog/schema/index fence for a range read.
Sourcepub const fn read_at(&self) -> ReadAtPoint
pub const fn read_at(&self) -> ReadAtPoint
Returns the cluster-issued read point backing this snapshot.
Sourcepub fn schema_manifest_id(&self) -> &str
pub fn schema_manifest_id(&self) -> &str
Returns the immutable schema-manifest identity.
Sourcepub const fn catalog_version(&self) -> u64
pub const fn catalog_version(&self) -> u64
Returns the pinned committed catalog version.
Sourcepub const fn schema_epoch(&self) -> u64
pub const fn schema_epoch(&self) -> u64
Returns the pinned schema epoch.
Sourcepub const fn index_epoch(&self) -> u64
pub const fn index_epoch(&self) -> u64
Returns the pinned index epoch.
Trait Implementations§
Source§impl Clone for RangeReadSnapshot
impl Clone for RangeReadSnapshot
Source§fn clone(&self) -> RangeReadSnapshot
fn clone(&self) -> RangeReadSnapshot
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 moreSource§impl Debug for RangeReadSnapshot
impl Debug for RangeReadSnapshot
impl Eq for RangeReadSnapshot
Source§impl PartialEq for RangeReadSnapshot
impl PartialEq for RangeReadSnapshot
impl StructuralPartialEq for RangeReadSnapshot
Auto Trait Implementations§
impl Freeze for RangeReadSnapshot
impl RefUnwindSafe for RangeReadSnapshot
impl Send for RangeReadSnapshot
impl Sync for RangeReadSnapshot
impl Unpin for RangeReadSnapshot
impl UnsafeUnpin for RangeReadSnapshot
impl UnwindSafe for RangeReadSnapshot
Blanket Implementations§
impl<T> Allocation for T
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