pub struct SseDecoder { /* private fields */ }Expand description
A minimal, manifest-driven SSE decoder:
- splits by delimiter (default “\n\n”)
- strips
prefix(default “data: “) - stops on
done_signal(default “[DONE]”)
Implementations§
Source§impl SseDecoder
impl SseDecoder
pub fn new( delimiter: Option<String>, prefix: Option<String>, done_signal: Option<String>, ) -> Self
pub fn from_config(cfg: &DecoderConfig) -> Result<Self, PipelineError>
Trait Implementations§
Source§impl Decoder for SseDecoder
impl Decoder for SseDecoder
Auto Trait Implementations§
impl Freeze for SseDecoder
impl RefUnwindSafe for SseDecoder
impl Send for SseDecoder
impl Sync for SseDecoder
impl Unpin for SseDecoder
impl UnwindSafe for SseDecoder
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