pub struct TreePageLimits { /* private fields */ }Expand description
Caller-sized page budget. Zero limits fail closed.
Fields stay private so callers cannot bypass Self::new.
Implementations§
Source§impl TreePageLimits
impl TreePageLimits
pub fn new( max_entries: usize, max_decoded_bytes: usize, ) -> Result<Self, TreeStreamError>
pub fn max_entries(&self) -> usize
pub fn max_decoded_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for TreePageLimits
impl Clone for TreePageLimits
Source§fn clone(&self) -> TreePageLimits
fn clone(&self) -> TreePageLimits
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 TreePageLimits
Source§impl Debug for TreePageLimits
impl Debug for TreePageLimits
impl Eq for TreePageLimits
Source§impl PartialEq for TreePageLimits
impl PartialEq for TreePageLimits
impl StructuralPartialEq for TreePageLimits
Auto Trait Implementations§
impl Freeze for TreePageLimits
impl RefUnwindSafe for TreePageLimits
impl Send for TreePageLimits
impl Sync for TreePageLimits
impl Unpin for TreePageLimits
impl UnsafeUnpin for TreePageLimits
impl UnwindSafe for TreePageLimits
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