pub enum QueryAdmissionRejection {
Show 16 variants
PublicQueryRequiresLimit,
PublicQueryRequiresIndex,
UnboundedFullScanRejected,
ScanBoundUnavailable,
ScanBoundExceedsPolicy,
EstimatedOnlyBoundRejected,
SortRequiresMaterialization,
MaterializationExceedsBudget,
ProjectionResponseMayExceedLimit,
GroupedQueryRequiresLimits,
GroupedQueryExceedsBudget,
DiagnosticLaneDoesNotExecute,
IntrospectionDisabledForLane,
UnsupportedStatementForQueryLane,
PublicQueryOffsetRejected,
ReturnedRowBoundExceedsPolicy,
}Expand description
Stable read-admission rejection reason.
Variants§
PublicQueryRequiresLimit
Public reads require an explicit LIMIT.
PublicQueryRequiresIndex
Public reads require a proven index-backed access path.
UnboundedFullScanRejected
The selected plan is an unbounded full scan.
No scan bound was available for a policy that requires one.
ScanBoundExceedsPolicy
The proven scan bound exceeds the policy.
EstimatedOnlyBoundRejected
Only an estimate was available for a policy that requires proof.
SortRequiresMaterialization
ORDER BY requires materializing rows.
MaterializationExceedsBudget
Materialization exceeds the policy.
ProjectionResponseMayExceedLimit
Projection bytes may exceed the response budget.
GroupedQueryRequiresLimits
Grouped reads need explicit group and memory budgets.
GroupedQueryExceedsBudget
Grouped read planning exceeds the policy.
DiagnosticLaneDoesNotExecute
Diagnostic lanes do not execute rows.
IntrospectionDisabledForLane
Introspection is disabled for the selected lane.
UnsupportedStatementForQueryLane
The statement shape is not supported by the selected lane.
PublicQueryOffsetRejected
Public read endpoints do not permit non-zero OFFSET execution.
ReturnedRowBoundExceedsPolicy
The returned-row bound exceeds the selected policy.
Implementations§
Source§impl QueryAdmissionRejection
impl QueryAdmissionRejection
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Return a stable lowercase diagnostic label for this rejection.
Sourcepub const fn code(self) -> QueryReadAdmissionCode
pub const fn code(self) -> QueryReadAdmissionCode
Return the compact diagnostic detail code for this rejection.
Sourcepub const fn diagnostic(self) -> Diagnostic
pub const fn diagnostic(self) -> Diagnostic
Return a compact diagnostic payload for this rejection.
Sourcepub const fn error_code(self) -> ErrorCode
pub const fn error_code(self) -> ErrorCode
Return the public wire code for this rejection.
Trait Implementations§
Source§impl Clone for QueryAdmissionRejection
impl Clone for QueryAdmissionRejection
Source§fn clone(&self) -> QueryAdmissionRejection
fn clone(&self) -> QueryAdmissionRejection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for QueryAdmissionRejection
Source§impl Debug for QueryAdmissionRejection
impl Debug for QueryAdmissionRejection
impl Eq for QueryAdmissionRejection
Source§impl PartialEq for QueryAdmissionRejection
impl PartialEq for QueryAdmissionRejection
Source§fn eq(&self, other: &QueryAdmissionRejection) -> bool
fn eq(&self, other: &QueryAdmissionRejection) -> bool
self and other values to be equal, and is used by ==.