pub struct StreamingInput { /* private fields */ }
Expand description
Handles streaming input processing and colorization
Implementations§
Source§impl StreamingInput
impl StreamingInput
Sourcepub fn new(config: PatternConfig, theme_name: &str) -> Result<Self>
pub fn new(config: PatternConfig, theme_name: &str) -> Result<Self>
Sourcepub fn process_stream<R: Read>(&mut self, reader: R) -> Result<()>
pub fn process_stream<R: Read>(&mut self, reader: R) -> Result<()>
Sourcepub fn set_buffer_capacity(&mut self, capacity: usize)
pub fn set_buffer_capacity(&mut self, capacity: usize)
Sourcepub fn set_colors_enabled(&mut self, enabled: bool)
pub fn set_colors_enabled(&mut self, enabled: bool)
Sourcepub fn process_stdin(&mut self) -> Result<()>
pub fn process_stdin(&mut self) -> Result<()>
Processes input from stdin with non-blocking reads
§Returns
Ok(()) if processing completes successfully, Error otherwise
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingInput
impl !RefUnwindSafe for StreamingInput
impl Send for StreamingInput
impl Sync for StreamingInput
impl Unpin for StreamingInput
impl !UnwindSafe for StreamingInput
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