pub struct RepositoryGraphReadBudget { /* private fields */ }Expand description
Validated resource envelope for one bounded repository-graph database read.
Implementations§
Source§impl RepositoryGraphReadBudget
impl RepositoryGraphReadBudget
Sourcepub const MAX_REQUESTED_ROWS: u32 = GraphLimits::MAX_ROWS
pub const MAX_REQUESTED_ROWS: u32 = GraphLimits::MAX_ROWS
Absolute compact-key or purpose-path request ceiling for one batch.
Sourcepub const MAX_RETURNED_ROWS: u32 = GraphLimits::MAX_ROWS
pub const MAX_RETURNED_ROWS: u32 = GraphLimits::MAX_ROWS
Absolute reconstructed-row ceiling for one batch.
Sourcepub const MAX_DECODED_BYTES: u64
pub const MAX_DECODED_BYTES: u64
Absolute decoded payload ceiling for one hydration batch.
Sourcepub const MAX_HYDRATED_ENTITIES: u32
pub const MAX_HYDRATED_ENTITIES: u32
Absolute unique-entity ceiling including one adjacency sentinel.
Sourcepub const MAX_HYDRATED_PATHS: u32
pub const MAX_HYDRATED_PATHS: u32
Absolute unique purpose-owner path ceiling for one hydration batch.
Sourcepub fn new(
requested_rows: u32,
returned_rows: u32,
decoded_bytes: u64,
hydrated_entities: u32,
hydrated_paths: u32,
) -> Result<Self, GraphContractError>
pub fn new( requested_rows: u32, returned_rows: u32, decoded_bytes: u64, hydrated_entities: u32, hydrated_paths: u32, ) -> Result<Self, GraphContractError>
Construct one bounded repository-graph read envelope.
§Errors
Returns an error when a limit is zero or above its absolute batch ceiling.
Sourcepub const fn requested_rows(self) -> u32
pub const fn requested_rows(self) -> u32
Maximum input keys, frontier selectors, or purpose-owner paths.
Sourcepub const fn returned_rows(self) -> u32
pub const fn returned_rows(self) -> u32
Maximum fully reconstructed rows.
Sourcepub const fn decoded_bytes(self) -> u64
pub const fn decoded_bytes(self) -> u64
Maximum decoded raw payload bytes.
Sourcepub const fn hydrated_entities(self) -> u32
pub const fn hydrated_entities(self) -> u32
Maximum unique hydrated entities.
Sourcepub const fn hydrated_paths(self) -> u32
pub const fn hydrated_paths(self) -> u32
Maximum unique purpose-owner paths.
Trait Implementations§
Source§impl Clone for RepositoryGraphReadBudget
impl Clone for RepositoryGraphReadBudget
Source§fn clone(&self) -> RepositoryGraphReadBudget
fn clone(&self) -> RepositoryGraphReadBudget
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 RepositoryGraphReadBudget
impl Debug for RepositoryGraphReadBudget
impl Copy for RepositoryGraphReadBudget
impl Eq for RepositoryGraphReadBudget
impl StructuralPartialEq for RepositoryGraphReadBudget
Auto Trait Implementations§
impl Freeze for RepositoryGraphReadBudget
impl RefUnwindSafe for RepositoryGraphReadBudget
impl Send for RepositoryGraphReadBudget
impl Sync for RepositoryGraphReadBudget
impl Unpin for RepositoryGraphReadBudget
impl UnwindSafe for RepositoryGraphReadBudget
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