Skip to main content

SSEContentExtractor

Trait SSEContentExtractor 

Source
pub trait SSEContentExtractor {
    // Required method
    fn extract_content(&self) -> Option<&str>;
}
Expand description

A trait for extracting content from SSE response chunks

Required Methods§

Source

fn extract_content(&self) -> Option<&str>

Extract the content string from the parsed response

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§