pub struct SecondaryIndexCursor { /* private fields */ }Expand description
Snapshot- and query-bound cursor for resumable secondary-index scans.
Implementations§
Source§impl SecondaryIndexCursor
impl SecondaryIndexCursor
Sourcepub fn to_bytes(&self) -> Result<Vec<u8>, Error>
pub fn to_bytes(&self) -> Result<Vec<u8>, Error>
Encode this cursor into a stable, versioned binary envelope.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Decode a canonical secondary-index cursor envelope.
pub fn direction(&self) -> SecondaryIndexDirection
pub fn snapshot_id(&self) -> IndexedSnapshotId
pub fn index_version(&self) -> &MapVersionId
pub fn definition_fingerprint(&self) -> &Cid
Trait Implementations§
Source§impl Clone for SecondaryIndexCursor
impl Clone for SecondaryIndexCursor
Source§fn clone(&self) -> SecondaryIndexCursor
fn clone(&self) -> SecondaryIndexCursor
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 SecondaryIndexCursor
impl Debug for SecondaryIndexCursor
impl Eq for SecondaryIndexCursor
Source§impl PartialEq for SecondaryIndexCursor
impl PartialEq for SecondaryIndexCursor
impl StructuralPartialEq for SecondaryIndexCursor
Auto Trait Implementations§
impl Freeze for SecondaryIndexCursor
impl RefUnwindSafe for SecondaryIndexCursor
impl Send for SecondaryIndexCursor
impl Sync for SecondaryIndexCursor
impl Unpin for SecondaryIndexCursor
impl UnsafeUnpin for SecondaryIndexCursor
impl UnwindSafe for SecondaryIndexCursor
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<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