pub struct ClaudeStreamParser { /* private fields */ }
Expand description
Stream parser for Claude output
Implementations§
Source§impl ClaudeStreamParser
impl ClaudeStreamParser
pub fn new() -> Self
Sourcepub async fn parse_stream<R: AsyncRead + Unpin>(
&mut self,
reader: R,
) -> Result<PerformanceMetrics>
pub async fn parse_stream<R: AsyncRead + Unpin>( &mut self, reader: R, ) -> Result<PerformanceMetrics>
Parse a stream of Claude events
Sourcepub fn export_training_data(&self) -> TrainingDataExport
pub fn export_training_data(&self) -> TrainingDataExport
Export collected data for training
Auto Trait Implementations§
impl Freeze for ClaudeStreamParser
impl !RefUnwindSafe for ClaudeStreamParser
impl Send for ClaudeStreamParser
impl Sync for ClaudeStreamParser
impl Unpin for ClaudeStreamParser
impl !UnwindSafe for ClaudeStreamParser
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