pub enum LineCollectionOptions {
Bounded {
max_bytes: NumBytes,
max_lines: usize,
overflow_behavior: CollectionOverflowBehavior,
},
TrustedUnbounded,
}Expand description
Options for collecting parsed output lines into memory.
Variants§
Bounded
Retain at most max_bytes total line bytes and at most max_lines lines in memory.
Fields
§
overflow_behavior: CollectionOverflowBehaviorWhich retained lines to keep when more output is observed.
TrustedUnbounded
Retain all observed lines in memory without a total output cap.
Use only when the output source and its output volume are trusted.
Trait Implementations§
Source§impl Clone for LineCollectionOptions
impl Clone for LineCollectionOptions
Source§fn clone(&self) -> LineCollectionOptions
fn clone(&self) -> LineCollectionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineCollectionOptions
impl Debug for LineCollectionOptions
Source§impl PartialEq for LineCollectionOptions
impl PartialEq for LineCollectionOptions
impl Copy for LineCollectionOptions
impl Eq for LineCollectionOptions
impl StructuralPartialEq for LineCollectionOptions
Auto Trait Implementations§
impl Freeze for LineCollectionOptions
impl RefUnwindSafe for LineCollectionOptions
impl Send for LineCollectionOptions
impl Sync for LineCollectionOptions
impl Unpin for LineCollectionOptions
impl UnsafeUnpin for LineCollectionOptions
impl UnwindSafe for LineCollectionOptions
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