pub enum InLogStatus {
NotInLog = 0,
InLog = 1,
Unknown = 2,
}Expand description
Whether a paired-mode row’s evidence was successfully pushed to the shared experiment log.
This is a tri-state because we can have three situations at record time:
NotInLog(0): the shared log append failed (Redis outage); the row is local-only and must be replayed locally on restart with a shared log configured.InLog(1): the append succeeded; the record lives in Redis and will be re-applied bysync_from_backendon restart — do not replay evidence from SQLite.Unknown(2): legacy row from before this column was added, or written in single-replica mode before a shared log was attached; cannot determine where it lives.
§Restart rules
With a shared log:
NotInLogrows → replay spend AND evidence locally (came from an outage).InLogrows → replay neither; they arrive from the log on the first sync.Unknownrows → replay spend only (count toward cap but withhold evidence); double-counting spend only makes the cap stricter (safe), withholding evidence only delays a decision (safe).
Without a shared log: all rows → replay everything (original behaviour).
Variants§
NotInLog = 0
Never reached the shared log (written during an outage or when no log was configured).
InLog = 1
Successfully appended to the shared log at record time.
Unknown = 2
Legacy row: cannot determine whether it was in the log.
Trait Implementations§
Source§impl Clone for InLogStatus
impl Clone for InLogStatus
impl Copy for InLogStatus
Source§impl Debug for InLogStatus
impl Debug for InLogStatus
impl Eq for InLogStatus
Source§impl PartialEq for InLogStatus
impl PartialEq for InLogStatus
impl StructuralPartialEq for InLogStatus
Auto Trait Implementations§
impl Freeze for InLogStatus
impl RefUnwindSafe for InLogStatus
impl Send for InLogStatus
impl Sync for InLogStatus
impl Unpin for InLogStatus
impl UnsafeUnpin for InLogStatus
impl UnwindSafe for InLogStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreCreates a shared type from an unshared type.