pub struct InMemoryLogPressure {
pub entries: usize,
pub max_entries: usize,
pub used_bytes: usize,
pub peak_bytes: usize,
pub max_bytes: usize,
pub evictions: u64,
pub oversized_rejections: u64,
}Expand description
Point-in-time count and retained-memory pressure for an in-memory logger.
Fields§
§entries: usizeCurrent retained record count.
max_entries: usizeConfigured record ceiling.
used_bytes: usizeEstimated bytes retained by records and owned text.
peak_bytes: usizeHighest estimated retained byte count observed since creation.
max_bytes: usizeConfigured aggregate retained-byte ceiling.
evictions: u64Oldest records discarded to enforce count or byte limits.
oversized_rejections: u64Records not retained because one record exceeded the byte ceiling.
Trait Implementations§
Source§impl Clone for InMemoryLogPressure
impl Clone for InMemoryLogPressure
Source§fn clone(&self) -> InMemoryLogPressure
fn clone(&self) -> InMemoryLogPressure
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 InMemoryLogPressure
Source§impl Debug for InMemoryLogPressure
impl Debug for InMemoryLogPressure
Source§impl Default for InMemoryLogPressure
impl Default for InMemoryLogPressure
Source§fn default() -> InMemoryLogPressure
fn default() -> InMemoryLogPressure
Returns the “default value” for a type. Read more
impl Eq for InMemoryLogPressure
Source§impl PartialEq for InMemoryLogPressure
impl PartialEq for InMemoryLogPressure
impl StructuralPartialEq for InMemoryLogPressure
Auto Trait Implementations§
impl Freeze for InMemoryLogPressure
impl RefUnwindSafe for InMemoryLogPressure
impl Send for InMemoryLogPressure
impl Sync for InMemoryLogPressure
impl Unpin for InMemoryLogPressure
impl UnsafeUnpin for InMemoryLogPressure
impl UnwindSafe for InMemoryLogPressure
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