pub struct Limits {
pub max_entries: NonZeroUsize,
pub max_message_bytes: usize,
pub max_label_bytes: usize,
pub max_text_bytes: usize,
}Expand description
Fixed limits chosen by the host before constructing a log.
Fields§
§max_entries: NonZeroUsizeMaximum retained rows; count eviction removes the oldest row.
max_message_bytes: usizeMaximum retained message bytes, including any truncation suffix.
max_label_bytes: usizeMaximum UTF-8 bytes in each source or topic label.
max_text_bytes: usizeMaximum combined retained message/source/topic UTF-8 bytes. Excludes row metadata, allocator overhead and transient checkpoint copies.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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