pub struct DetailedRelationBudget { /* private fields */ }Expand description
Aggregate budgets for one detailed relation page and its resumable state.
Implementations§
Source§impl DetailedRelationBudget
impl DetailedRelationBudget
Sourcepub const MAX_NODES: u32 = GraphLimits::MAX_ROWS
pub const MAX_NODES: u32 = GraphLimits::MAX_ROWS
Absolute node and visited-state ceiling for one traversal.
Sourcepub const MAX_OCCURRENCES_TOTAL: u32 = 100_000
pub const MAX_OCCURRENCES_TOTAL: u32 = 100_000
Absolute aggregate occurrence ceiling for one page.
Sourcepub const MAX_INTERMEDIATE_BYTES: u64
pub const MAX_INTERMEDIATE_BYTES: u64
Absolute decoded/cursor/intermediate state ceiling.
Sourcepub const MAX_DEADLINE_MS: u64 = 60_000
pub const MAX_DEADLINE_MS: u64 = 60_000
Absolute service-owned elapsed-time ceiling.
Sourcepub fn from_graph_limits(limits: GraphLimits) -> Self
pub fn from_graph_limits(limits: GraphLimits) -> Self
Derive compatibility-preserving aggregate defaults from the legacy four limits.
Sourcepub fn with_aggregate_limits(
self,
edges: Option<u32>,
nodes: Option<u32>,
visited: Option<u32>,
occurrences_total: Option<u32>,
intermediate_bytes: Option<u64>,
deadline_ms: Option<u64>,
) -> ServiceResult<Self>
pub fn with_aggregate_limits( self, edges: Option<u32>, nodes: Option<u32>, visited: Option<u32>, occurrences_total: Option<u32>, intermediate_bytes: Option<u64>, deadline_ms: Option<u64>, ) -> ServiceResult<Self>
Apply additive aggregate-work overrides to compatibility defaults.
§Errors
Returns an error when any resulting ceiling is zero, inconsistent, or above its product maximum.
Sourcepub const fn occurrences_per_relation(self) -> u32
pub const fn occurrences_per_relation(self) -> u32
Maximum retained occurrences for one relation.
Sourcepub const fn occurrences_total(self) -> u32
pub const fn occurrences_total(self) -> u32
Maximum occurrences retained across this page.
Sourcepub const fn intermediate_bytes(self) -> u64
pub const fn intermediate_bytes(self) -> u64
Maximum cursor and intermediate decoded bytes.
Sourcepub const fn deadline_ms(self) -> u64
pub const fn deadline_ms(self) -> u64
Service-owned elapsed-time budget.
Sourcepub const fn output_bytes(self) -> u32
pub const fn output_bytes(self) -> u32
Maximum rendered adapter output bytes.
Trait Implementations§
Source§impl Clone for DetailedRelationBudget
impl Clone for DetailedRelationBudget
Source§fn clone(&self) -> DetailedRelationBudget
fn clone(&self) -> DetailedRelationBudget
Returns a duplicate of the value. Read more
1.0.0 · 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 DetailedRelationBudget
impl Debug for DetailedRelationBudget
Source§impl<'de> Deserialize<'de> for DetailedRelationBudget
impl<'de> Deserialize<'de> for DetailedRelationBudget
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DetailedRelationBudget
impl PartialEq for DetailedRelationBudget
Source§impl Serialize for DetailedRelationBudget
impl Serialize for DetailedRelationBudget
impl Copy for DetailedRelationBudget
impl Eq for DetailedRelationBudget
impl StructuralPartialEq for DetailedRelationBudget
Auto Trait Implementations§
impl Freeze for DetailedRelationBudget
impl RefUnwindSafe for DetailedRelationBudget
impl Send for DetailedRelationBudget
impl Sync for DetailedRelationBudget
impl Unpin for DetailedRelationBudget
impl UnwindSafe for DetailedRelationBudget
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more