pub struct BufferConfig {
pub max_size: usize,
pub search_window: Option<usize>,
pub ring_buffer: bool,
}Expand description
Configuration for the output buffer.
Fields§
§max_size: usizeMaximum buffer size in bytes.
search_window: Option<usize>Size of the search window for pattern matching.
ring_buffer: boolWhether to use a ring buffer (discard oldest data when full).
Implementations§
Source§impl BufferConfig
impl BufferConfig
Sourcepub const fn search_window(self, size: usize) -> Self
pub const fn search_window(self, size: usize) -> Self
Set the search window size.
Sourcepub const fn ring_buffer(self, enabled: bool) -> Self
pub const fn ring_buffer(self, enabled: bool) -> Self
Set whether to use a ring buffer.
Trait Implementations§
Source§impl Clone for BufferConfig
impl Clone for BufferConfig
Source§fn clone(&self) -> BufferConfig
fn clone(&self) -> BufferConfig
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 BufferConfig
impl Debug for BufferConfig
Auto Trait Implementations§
impl Freeze for BufferConfig
impl RefUnwindSafe for BufferConfig
impl Send for BufferConfig
impl Sync for BufferConfig
impl Unpin for BufferConfig
impl UnwindSafe for BufferConfig
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