pub struct RequestedBounds { /* private fields */ }Expand description
Caller-requested ceilings. A deployment may only narrow them.
Implementations§
Source§impl RequestedBounds
impl RequestedBounds
Sourcepub fn try_new(
timeout: Duration,
rows: u64,
result_bytes: u64,
frame_bytes: u64,
) -> Result<Self, ModelError>
pub fn try_new( timeout: Duration, rows: u64, result_bytes: u64, frame_bytes: u64, ) -> Result<Self, ModelError>
Validates all four caller ceilings.
§Errors
Returns ModelError::Bounds when a ceiling is zero or exceeds the
protocol’s compile-time maximum.
Sourcepub const fn result_bytes(self) -> u64
pub const fn result_bytes(self) -> u64
Returns the released result byte ceiling.
Sourcepub const fn frame_bytes(self) -> u64
pub const fn frame_bytes(self) -> u64
Returns the per-frame byte ceiling.
Trait Implementations§
Source§impl Clone for RequestedBounds
impl Clone for RequestedBounds
Source§fn clone(&self) -> RequestedBounds
fn clone(&self) -> RequestedBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestedBounds
Source§impl Debug for RequestedBounds
impl Debug for RequestedBounds
impl Eq for RequestedBounds
Source§impl PartialEq for RequestedBounds
impl PartialEq for RequestedBounds
impl StructuralPartialEq for RequestedBounds
Auto Trait Implementations§
impl Freeze for RequestedBounds
impl RefUnwindSafe for RequestedBounds
impl Send for RequestedBounds
impl Sync for RequestedBounds
impl Unpin for RequestedBounds
impl UnsafeUnpin for RequestedBounds
impl UnwindSafe for RequestedBounds
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