Skip to main content

InspectionFlags

Struct InspectionFlags 

Source
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>

Source

pub fn new(store: &'a S, shards: &dyn ShardMap, repo: &'a RepoId) -> Self

Resolve the canonical repository-index partition.

Source

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.
Source

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.
Source

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.
Source

pub async fn version(&self) -> Result<u64, StoreError>

Current version; an untouched repository is version zero.

§Errors Returns storage or corrupt-version errors.

Trait Implementations§

Source§

impl<'a, S: Debug + ?Sized> Debug for InspectionFlags<'a, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, S> Freeze for InspectionFlags<'a, S>
where &'a S: Freeze, S: ?Sized,

§

impl<'a, S> RefUnwindSafe for InspectionFlags<'a, S>

§

impl<'a, S> Send for InspectionFlags<'a, S>
where &'a S: Send, S: ?Sized,

§

impl<'a, S> Sync for InspectionFlags<'a, S>
where &'a S: Sync, S: ?Sized,

§

impl<'a, S> Unpin for InspectionFlags<'a, S>
where &'a S: Unpin, S: ?Sized,

§

impl<'a, S> UnsafeUnpin for InspectionFlags<'a, S>
where &'a S: UnsafeUnpin, S: ?Sized,

§

impl<'a, S> UnwindSafe for InspectionFlags<'a, S>
where &'a S: UnwindSafe, S: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSync for T
where T: Sync + ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more