pub enum MemoryFailureCategory {
PalaceEnsure,
ChatTurnAppend,
MemoryRemember,
MemoryRememberSkipped,
QueueFull,
DrainClosed,
}Expand description
Which half of the dual-write degraded, as the retained per-session status reports it (#2425).
Why: “the durable history is thinning” is not actionable on its own — an
operator needs to know whether the daemon is unreachable, the palace is
missing, a content gate rejected the write, or the local queue overflowed,
because those have different remedies. This is a CLOSED vocabulary rather
than the underlying error string precisely so it can be retained and
reported without carrying daemon-controlled text into the operator surface.
What: one variant per failure site in [drain]/[write_turn]/
TurnMemorySink::enqueue. Serialises snake_case.
Test: memory_sink::tests::queue_full_and_closed_drain_are_immediate_failures,
registry_tests::memory_degradation_event_is_redacted.
Variants§
PalaceEnsure
The target palace could not be probed or created (#2424).
ChatTurnAppend
chat_turn_append returned an RPC error.
MemoryRemember
memory_remember returned an RPC error.
MemoryRememberSkipped
memory_remember returned status=skipped despite force: true (#2363).
QueueFull
The bounded queue was full, so the newest turn was dropped.
DrainClosed
The drain task was gone, so the turn was dropped.
Trait Implementations§
Source§impl Clone for MemoryFailureCategory
impl Clone for MemoryFailureCategory
impl Copy for MemoryFailureCategory
Source§impl Debug for MemoryFailureCategory
impl Debug for MemoryFailureCategory
Source§impl<'de> Deserialize<'de> for MemoryFailureCategory
impl<'de> Deserialize<'de> for MemoryFailureCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MemoryFailureCategory
Source§impl PartialEq for MemoryFailureCategory
impl PartialEq for MemoryFailureCategory
Source§impl Serialize for MemoryFailureCategory
impl Serialize for MemoryFailureCategory
impl StructuralPartialEq for MemoryFailureCategory
Auto Trait Implementations§
impl Freeze for MemoryFailureCategory
impl RefUnwindSafe for MemoryFailureCategory
impl Send for MemoryFailureCategory
impl Sync for MemoryFailureCategory
impl Unpin for MemoryFailureCategory
impl UnsafeUnpin for MemoryFailureCategory
impl UnwindSafe for MemoryFailureCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.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