pub struct HistoryLimits {
pub entries: usize,
pub payload_bytes: usize,
}Expand description
Immutable bounds on row count and caller-accounted payload bytes.
Bytes are a consumer-defined charge, not a measurement of all heap memory. Consumers must bound each payload’s fields before appending and account for their retained content consistently. Inline metadata, spare capacity and allocator overhead are not automatically charged.
Fields§
§entries: usizeMaximum retained rows; zero disables admission.
payload_bytes: usizeMaximum sum of retained row payload charges.
Trait Implementations§
Source§impl Clone for HistoryLimits
impl Clone for HistoryLimits
impl Copy for HistoryLimits
Source§impl Debug for HistoryLimits
impl Debug for HistoryLimits
impl Eq for HistoryLimits
Source§impl PartialEq for HistoryLimits
impl PartialEq for HistoryLimits
impl StructuralPartialEq for HistoryLimits
Auto Trait Implementations§
impl Forget for HistoryLimits
impl Freeze for HistoryLimits
impl RefUnwindSafe for HistoryLimits
impl Send for HistoryLimits
impl Sync for HistoryLimits
impl Unpin for HistoryLimits
impl UnsafeUnpin for HistoryLimits
impl UnwindSafe for HistoryLimits
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