pub struct InspectionFlags<'a, S: ?Sized> { /* private fields */ }Expand description
Storage authority, not connected to pipeline or serving policy.
Implementations§
Source§impl<'a, S: NamespaceStore + ?Sized> InspectionFlags<'a, S>
impl<'a, S: NamespaceStore + ?Sized> InspectionFlags<'a, S>
Sourcepub fn new(store: &'a S, shards: &dyn ShardMap, repo: &'a RepoId) -> Self
pub fn new(store: &'a S, shards: &dyn ShardMap, repo: &'a RepoId) -> Self
Resolve the canonical repository-index partition.
Sourcepub async fn install_flags(
&self,
flags: &[FlagInstall],
) -> Result<u64, StoreError>
pub async fn install_flags( &self, flags: &[FlagInstall], ) -> Result<u64, StoreError>
Atomically install at most 48 distinct flags; unseen sources advance the version. Replays remain no-ops across releases; history is bounded at 1024 and never pruned.
§Errors Returns storage, input, corruption, overflow, or CAS contention errors.
Sourcepub async fn release_flag(&self, id: &Hash) -> Result<u64, StoreError>
pub async fn release_flag(&self, id: &Hash) -> Result<u64, StoreError>
Release this flag while retaining its origin, so delayed redelivery cannot reinstall it.
§Errors Returns storage, corruption, overflow, or CAS contention errors.
Sourcepub async fn lookup(&self, ids: &[Hash]) -> Result<FlagLookup, StoreError>
pub async fn lookup(&self, ids: &[Hash]) -> Result<FlagLookup, StoreError>
Read at most 48 distinct ids; a version guard validates sequential reads and retries races.
§Errors Returns invalid bounds, storage, corruption, or CAS contention errors.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for InspectionFlags<'a, S>
impl<'a, S> RefUnwindSafe for InspectionFlags<'a, S>
impl<'a, S> Send for InspectionFlags<'a, S>
impl<'a, S> Sync for InspectionFlags<'a, S>
impl<'a, S> Unpin for InspectionFlags<'a, S>
impl<'a, S> UnsafeUnpin for InspectionFlags<'a, S>
impl<'a, S> UnwindSafe for InspectionFlags<'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