pub struct ResultLimits {
pub max_rows: Option<u64>,
pub max_bytes: Option<u64>,
pub max_candidate_count: Option<u64>,
}Expand description
Per-request result bounds (spec sections 4.9 and 10.4, S1D-001).
Every request is bounded: None does NOT mean unbounded, it means the
server applies its configured default (see the DEFAULT_* constants for
the conservative shipped defaults) and may clamp explicit values down to
configured ceilings. The effective limits are what the executor
enforces; exceeding them fails the request with
mongreldb_types::errors::ErrorCategory::ResourceExhausted.
Fields§
§max_rows: Option<u64>Maximum result rows; None applies the server default.
max_bytes: Option<u64>Maximum result bytes; None applies the server default.
max_candidate_count: Option<u64>Maximum candidate rows scanned during retrieval; None applies the
server default.
Implementations§
Source§impl ResultLimits
impl ResultLimits
Sourcepub fn effective_max_rows(&self) -> u64
pub fn effective_max_rows(&self) -> u64
Effective row bound after applying server-enforceable defaults.
Sourcepub fn effective_max_bytes(&self) -> u64
pub fn effective_max_bytes(&self) -> u64
Effective byte bound after applying server-enforceable defaults.
Sourcepub fn effective_max_candidate_count(&self) -> u64
pub fn effective_max_candidate_count(&self) -> u64
Effective candidate-count bound after applying server-enforceable defaults.
Trait Implementations§
Source§impl Clone for ResultLimits
impl Clone for ResultLimits
Source§fn clone(&self) -> ResultLimits
fn clone(&self) -> ResultLimits
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 ResultLimits
Source§impl Debug for ResultLimits
impl Debug for ResultLimits
Source§impl Default for ResultLimits
impl Default for ResultLimits
Source§fn default() -> ResultLimits
fn default() -> ResultLimits
Source§impl<'de> Deserialize<'de> for ResultLimits
impl<'de> Deserialize<'de> for ResultLimits
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 ResultLimits
Source§impl PartialEq for ResultLimits
impl PartialEq for ResultLimits
Source§impl Serialize for ResultLimits
impl Serialize for ResultLimits
impl StructuralPartialEq for ResultLimits
Auto Trait Implementations§
impl Freeze for ResultLimits
impl RefUnwindSafe for ResultLimits
impl Send for ResultLimits
impl Sync for ResultLimits
impl Unpin for ResultLimits
impl UnsafeUnpin for ResultLimits
impl UnwindSafe for ResultLimits
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§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request