pub struct MetadataState { /* private fields */ }Implementations§
Source§impl MetadataState
impl MetadataState
pub fn apply_committed_wal_deltas( &self, committed_seq: ChangeSeq, committed_at_ms: u64, deltas: &[WalDelta], ) -> MetadataState
pub fn apply_committed_wal_deltas_mut( &mut self, committed_seq: ChangeSeq, committed_at_ms: u64, deltas: &[WalDelta], )
pub fn apply_committed_wal_record_mut(&mut self, record: &WalCommitPayload)
Source§impl MetadataState
impl MetadataState
pub fn inode_at_seq( &self, inode_id: InodeId, base_seq: ChangeSeq, ) -> Option<InodeRecord>
pub fn current_parent_binding_for_child( &self, child_inode_id: InodeId, base_seq: ChangeSeq, ) -> Option<DirentryBindRecord>
pub fn active_subtree_tombstone( &self, root_inode_id: InodeId, base_seq: ChangeSeq, ) -> Option<SubtreeTombstoneRecord>
pub fn covering_subtree_tombstone( &self, inode_id: InodeId, base_seq: ChangeSeq, ) -> Option<SubtreeTombstoneRecord>
pub fn visible_inode( &self, inode_id: InodeId, base_seq: ChangeSeq, ) -> Option<InodeRecord>
pub fn visible_child( &self, parent_inode_id: InodeId, name_key: &NameKey, base_seq: ChangeSeq, ) -> Option<DirentryBindRecord>
pub fn resolve_visible_path( &self, absolute_path: &AbsolutePath, base_seq: ChangeSeq, ) -> Result<ResolvedVisiblePath, VisiblePathError>
pub fn would_create_directory_cycle( &self, inode_id: InodeId, new_parent_inode_id: InodeId, base_seq: ChangeSeq, ) -> bool
Source§impl MetadataState
impl MetadataState
Sourcepub fn indexed_seq(&self) -> ChangeSeq
pub fn indexed_seq(&self) -> ChangeSeq
Highest sequence carried by any indexed record.
No record carries a larger seq, so a query at base_seq >= indexed_seq() passes every seq <= base_seq filter and is equivalent
to an at-head query. The seq-gated read methods below rely on this to
route to the indexes; only queries strictly below indexed_seq() need
the historical scans.
pub fn inodes(&self) -> &[InodeRecord]
pub fn direntry_binds(&self) -> &[DirentryBindRecord]
pub fn direntry_unbinds(&self) -> &[DirentryUnbindRecord]
pub fn revisions(&self) -> &[RevisionRecord]
pub fn subtree_tombstones(&self) -> &[SubtreeTombstoneRecord]
pub fn commit_receipts(&self) -> &[CommitReceiptRecord]
pub fn row_count(&self) -> usize
pub fn decoded_bytes(&self) -> usize
pub fn find_commit_receipt( &self, commit_id: &CommitId, ) -> Option<&CommitReceiptRecord>
Trait Implementations§
Source§impl Clone for MetadataState
impl Clone for MetadataState
Source§fn clone(&self) -> MetadataState
fn clone(&self) -> MetadataState
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 MetadataState
impl Debug for MetadataState
Source§impl Default for MetadataState
impl Default for MetadataState
Source§impl<'de> Deserialize<'de> for MetadataState
impl<'de> Deserialize<'de> for MetadataState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MetadataState
Source§impl PartialEq for MetadataState
impl PartialEq for MetadataState
Source§impl Serialize for MetadataState
impl Serialize for MetadataState
impl StructuralPartialEq for MetadataState
Auto Trait Implementations§
impl Freeze for MetadataState
impl RefUnwindSafe for MetadataState
impl Send for MetadataState
impl Sync for MetadataState
impl Unpin for MetadataState
impl UnsafeUnpin for MetadataState
impl UnwindSafe for MetadataState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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