pub enum Intent {
Seed(SessionSeed),
Gone,
Refused {
tier: ProvenanceTier,
stale: bool,
},
}Expand description
What resolving an item’s provenance produced.
Three outcomes, not two, because Option conflated states whose correct
handling differs. An item that vanished between the scan and now needs no
backoff — it is gone from the queue and a later tick will not see it. An
item whose author the tier gate REFUSED is still in the queue, still the
oldest, and still labelled, so without a recorded failure selection picks it
again on every tick and halts the sweep there forever — starving everything
behind it. That path became reachable the moment selection stopped
rejecting untiered candidates outright.
Variants§
Seed(SessionSeed)
Cleared. The text may seed a coder session.
Gone
Closed or edited between the scan and now. The normal case for a human-authored queue, and not a failure of anything.
Refused
The provenance gate said no.
stale separates the two refusals, because their remedies differ and
reporting one as the other sends an operator to the wrong place: a tier
resolved too long ago is fixed by retrying, an untrusted author is not
fixed by anything the operator does to this daemon.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> ⓘ
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> ⓘ
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