pub struct SSEProcessor { /* private fields */ }Implementations§
Source§impl SSEProcessor
impl SSEProcessor
pub fn new_with_timeout(timeout_ms: u64) -> SSEProcessor
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
fn process<'life0, 'async_trait>(
&'life0 mut self,
stream: Pin<Box<dyn Stream<Item = Event> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Event> + Send>>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
'life0: 'async_trait,
SSEProcessor: 'async_trait,
Source§impl Default for SSEProcessor
impl Default for SSEProcessor
Source§fn default() -> SSEProcessor
fn default() -> SSEProcessor
Returns the “default value” for a type. Read more
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