pub struct RecollectionBudget(/* private fields */);Expand description
How much of what memory holds a session is willing to read at its opening, in bytes of summary.
A bound rather than a preference. A scope that a hundred sessions have written to holds more than any opening can carry, and a recollection that grew with the scope would make the hundred-and- first session slower than the first for no benefit it could name.
Bytes of summary and not of the serialized payload: the summaries are what a reader reads, and measuring the envelope would move the budget every time a field was added beside them.
Implementations§
Trait Implementations§
Source§impl Clone for RecollectionBudget
impl Clone for RecollectionBudget
Source§fn clone(&self) -> RecollectionBudget
fn clone(&self) -> RecollectionBudget
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 RecollectionBudget
Source§impl Debug for RecollectionBudget
impl Debug for RecollectionBudget
Source§impl<'de> Deserialize<'de> for RecollectionBudget
impl<'de> Deserialize<'de> for RecollectionBudget
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
impl Eq for RecollectionBudget
Source§impl Hash for RecollectionBudget
impl Hash for RecollectionBudget
Source§impl Ord for RecollectionBudget
impl Ord for RecollectionBudget
Source§fn cmp(&self, other: &RecollectionBudget) -> Ordering
fn cmp(&self, other: &RecollectionBudget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecollectionBudget
impl PartialEq for RecollectionBudget
Source§impl PartialOrd for RecollectionBudget
impl PartialOrd for RecollectionBudget
Source§impl Serialize for RecollectionBudget
impl Serialize for RecollectionBudget
impl StructuralPartialEq for RecollectionBudget
Auto Trait Implementations§
impl Freeze for RecollectionBudget
impl RefUnwindSafe for RecollectionBudget
impl Send for RecollectionBudget
impl Sync for RecollectionBudget
impl Unpin for RecollectionBudget
impl UnsafeUnpin for RecollectionBudget
impl UnwindSafe for RecollectionBudget
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