pub struct AsyncIndexedSnapshot<'a, S: AsyncIndexedStore> { /* private fields */ }Expand description
Immutable async view pinned to one canonical collection-state root.
Implementations§
Source§impl<'a, S: AsyncIndexedStore> AsyncIndexedSnapshot<'a, S>
impl<'a, S: AsyncIndexedStore> AsyncIndexedSnapshot<'a, S>
Sourcepub fn id(&self) -> &IndexedSnapshotId
pub fn id(&self) -> &IndexedSnapshotId
Content-addressed canonical snapshot identifier.
Sourcepub fn source_version(&self) -> &MapVersionId
pub fn source_version(&self) -> &MapVersionId
Pinned source version.
Sourcepub fn state_version(&self) -> &MapVersionId
pub fn state_version(&self) -> &MapVersionId
Pinned collection-state version.
Sourcepub fn source_tree(&self) -> &Tree
pub fn source_tree(&self) -> &Tree
Pinned source tree.
Sourcepub fn state_tree(&self) -> &Tree
pub fn state_tree(&self) -> &Tree
Pinned canonical state tree.
Sourcepub fn index(
&self,
name: impl AsRef<[u8]>,
) -> Result<&AsyncSecondaryIndexSnapshot<'a, S>, Error>
pub fn index( &self, name: impl AsRef<[u8]>, ) -> Result<&AsyncSecondaryIndexSnapshot<'a, S>, Error>
Select one active index from this exact snapshot.
Sourcepub fn indexes(
&self,
) -> impl ExactSizeIterator<Item = &AsyncSecondaryIndexSnapshot<'a, S>>
pub fn indexes( &self, ) -> impl ExactSizeIterator<Item = &AsyncSecondaryIndexSnapshot<'a, S>>
Iterate all indexes selected by this exact snapshot.
Auto Trait Implementations§
impl<'a, S> Freeze for AsyncIndexedSnapshot<'a, S>
impl<'a, S> RefUnwindSafe for AsyncIndexedSnapshot<'a, S>
impl<'a, S> Send for AsyncIndexedSnapshot<'a, S>
impl<'a, S> Sync for AsyncIndexedSnapshot<'a, S>
impl<'a, S> Unpin for AsyncIndexedSnapshot<'a, S>
impl<'a, S> UnsafeUnpin for AsyncIndexedSnapshot<'a, S>
impl<'a, S> UnwindSafe for AsyncIndexedSnapshot<'a, S>
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> 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