pub struct SSEProcessor { /* private fields */ }Implementations§
Source§impl SSEProcessor
impl SSEProcessor
pub fn new_with_timeout(timeout_ms: u64) -> Self
pub fn is_sse_data(data: &str) -> bool
pub fn parse_sse_events_from_chunk(chunk_content: &str) -> Vec<SSEEvent>
pub fn parse_sse_events(data: &str) -> Vec<SSEEvent>
pub fn clean_chunked_content(content: &str) -> String
Trait Implementations§
Source§impl Analyzer for SSEProcessor
impl Analyzer for SSEProcessor
Source§fn process<'life0, 'async_trait>(
&'life0 mut self,
stream: EventStream,
) -> Pin<Box<dyn Future<Output = Result<EventStream, AnalyzerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 mut self,
stream: EventStream,
) -> Pin<Box<dyn Future<Output = Result<EventStream, AnalyzerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process an event stream and return a processed stream
Auto Trait Implementations§
impl Freeze for SSEProcessor
impl RefUnwindSafe for SSEProcessor
impl Send for SSEProcessor
impl Sync for SSEProcessor
impl Unpin for SSEProcessor
impl UnsafeUnpin for SSEProcessor
impl UnwindSafe for SSEProcessor
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