#[repr(i32)]pub enum ScanExhaustion {
Unspecified = 0,
Limited = 1,
ExhaustedFilterTerms = 2,
ExhaustedScan = 3,
}Expand description
Why one scan page ended — the server-side fact that replaces the
client’s short-page inference. rows.len() < limit cannot distinguish
“stopped at the limit” from “ran out, exactly at the limit”, which
costs a zero-row confirm request at every exact boundary. The verdict
is present on a response only when the request set verdict_wanted;
UNSPECIFIED (the zero value) is a placeholder no producer places — an
unset field means “no verdict purchased”, not a verdict value.
Variants§
Unspecified = 0
Placeholder zero value; never placed on the wire by a producer. A field carrying it (or unset) reads as “no verdict”.
Limited = 1
The walk stopped at a demand boundary — the request’s page limit.
Under verdict_wanted this is constructive proof that more matching
rows exist: the sink refused a row that arrived while the page was
full. Without it, the value is not produced at all (see the
exhausted field’s absence contract).
ExhaustedFilterTerms = 2
The request’s filter term list (a DomainScan’s constraint list) is fully served. The scan’s key range outside the list was never consulted.
ExhaustedScan = 3
The scan’s own key range is fully served at this snapshot.
Implementations§
Source§impl ScanExhaustion
impl ScanExhaustion
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ScanExhaustion
impl Clone for ScanExhaustion
Source§fn clone(&self) -> ScanExhaustion
fn clone(&self) -> ScanExhaustion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScanExhaustion
impl Debug for ScanExhaustion
Source§impl Default for ScanExhaustion
impl Default for ScanExhaustion
Source§fn default() -> ScanExhaustion
fn default() -> ScanExhaustion
Source§impl From<ScanExhaustion> for i32
impl From<ScanExhaustion> for i32
Source§fn from(value: ScanExhaustion) -> i32
fn from(value: ScanExhaustion) -> i32
Source§impl Hash for ScanExhaustion
impl Hash for ScanExhaustion
Source§impl Ord for ScanExhaustion
impl Ord for ScanExhaustion
Source§fn cmp(&self, other: &ScanExhaustion) -> Ordering
fn cmp(&self, other: &ScanExhaustion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ScanExhaustion
impl PartialEq for ScanExhaustion
Source§impl PartialOrd for ScanExhaustion
impl PartialOrd for ScanExhaustion
Source§impl TryFrom<i32> for ScanExhaustion
impl TryFrom<i32> for ScanExhaustion
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ScanExhaustion, UnknownEnumValue>
fn try_from(value: i32) -> Result<ScanExhaustion, UnknownEnumValue>
impl Copy for ScanExhaustion
impl Eq for ScanExhaustion
impl StructuralPartialEq for ScanExhaustion
Auto Trait Implementations§
impl Freeze for ScanExhaustion
impl RefUnwindSafe for ScanExhaustion
impl Send for ScanExhaustion
impl Sync for ScanExhaustion
impl Unpin for ScanExhaustion
impl UnsafeUnpin for ScanExhaustion
impl UnwindSafe for ScanExhaustion
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].