pub struct OpenRouterSseParser { /* private fields */ }Implementations§
Source§impl OpenRouterSseParser
impl OpenRouterSseParser
pub fn new(attempt_id: &AttemptId) -> Self
pub fn with_max_event_bytes( attempt_id: &AttemptId, max_event_bytes: usize, ) -> Self
pub fn mark_body_written(&mut self)
pub fn mark_forwarded_tool_result(&mut self)
pub fn mark_transport_outcome_unknown(&mut self)
pub fn replay_decision(&self) -> ReplayDecision
pub fn feed( &mut self, bytes: &[u8], ) -> Result<Vec<OpenRouterStreamEvent>, OpenRouterStreamError>
pub fn finish( &mut self, ) -> Result<Vec<OpenRouterStreamEvent>, OpenRouterStreamError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenRouterSseParser
impl RefUnwindSafe for OpenRouterSseParser
impl Send for OpenRouterSseParser
impl Sync for OpenRouterSseParser
impl Unpin for OpenRouterSseParser
impl UnsafeUnpin for OpenRouterSseParser
impl UnwindSafe for OpenRouterSseParser
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