pub struct IndexHandle { /* private fields */ }Expand description
Shareable owner for serving readers while reconciliation applies short writes.
Implementations§
Source§impl IndexHandle
impl IndexHandle
Sourcepub fn apply(&self, observation: &Observation) -> Result<ApplyOutcome>
pub fn apply(&self, observation: &Observation) -> Result<ApplyOutcome>
Arbitrate and apply one observation under the single-writer lock.
Sourcepub fn root_path(&self) -> Result<PathBuf>
pub fn root_path(&self) -> Result<PathBuf>
Absolute filesystem root, copied without retaining the read lock.
Sourcepub fn freshness_at(&self, path: &Path) -> Result<Freshness>
pub fn freshness_at(&self, path: &Path) -> Result<Freshness>
Trust state for one subtree.
Sourcepub fn rollup(&self, path: &Path) -> Result<Option<RollUp>>
pub fn rollup(&self, path: &Path) -> Result<Option<RollUp>>
Owned roll-up state for a relative directory path.
Sourcepub fn path_state(&self, path: &Path) -> Result<PathState>
pub fn path_state(&self, path: &Path) -> Result<PathState>
Current visible state for a relative path.
Sourcepub fn expectation(&self, path: &Path) -> Result<PathExpectation>
pub fn expectation(&self, path: &Path) -> Result<PathExpectation>
Conditional baseline for a producer operating on a shared index.
Sourcepub fn children(&self, path: &Path) -> Result<Option<Vec<ChildSnapshot>>>
pub fn children(&self, path: &Path) -> Result<Option<Vec<ChildSnapshot>>>
Direct children captured coherently at one read boundary.
On an index that did not observe control state each child’s
ChildSnapshot::ignored and ChildSnapshot::partitions are None, the way
Index::is_ignored refuses; the names, metadata, and roll-ups still answer.
Trait Implementations§
Source§impl Clone for IndexHandle
impl Clone for IndexHandle
Auto Trait Implementations§
impl Freeze for IndexHandle
impl RefUnwindSafe for IndexHandle
impl Send for IndexHandle
impl Sync for IndexHandle
impl Unpin for IndexHandle
impl UnsafeUnpin for IndexHandle
impl UnwindSafe for IndexHandle
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