pub struct CachePairWarning {
pub cache_id: String,
pub present_node_id: String,
pub missing_role: String,
}Expand description
Records that one node on an upstream’s success path forces buffering.
Serializes as {"upstream": ..., "blocked_by": ..., "node_type": ...} —
the shape the Admin API’s policy-validate endpoint and the MCP
One half of a proxy-cache pair with no counterpart.
A lookup with no store caches nothing; a store with no lookup is never read. Both are silent no-ops rather than errors – and both are also what a policy looks like halfway through being built – so they are reported the way a buffering reason is rather than refused.
Fields§
§cache_id: StringThe shared id that links a pair.
present_node_id: StringThe half that is present.
missing_role: StringThe half that is missing: "lookup" or "store".
Trait Implementations§
Source§impl Clone for CachePairWarning
impl Clone for CachePairWarning
Source§fn clone(&self) -> CachePairWarning
fn clone(&self) -> CachePairWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachePairWarning
impl Debug for CachePairWarning
Source§impl PartialEq for CachePairWarning
impl PartialEq for CachePairWarning
Source§fn eq(&self, other: &CachePairWarning) -> bool
fn eq(&self, other: &CachePairWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CachePairWarning
impl Serialize for CachePairWarning
impl StructuralPartialEq for CachePairWarning
Auto Trait Implementations§
impl Freeze for CachePairWarning
impl RefUnwindSafe for CachePairWarning
impl Send for CachePairWarning
impl Sync for CachePairWarning
impl Unpin for CachePairWarning
impl UnsafeUnpin for CachePairWarning
impl UnwindSafe for CachePairWarning
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more