pub struct SseDecoder { /* private fields */ }Expand description
Incremental line-buffered SSE decoder (mirrors pi’s iterateSseMessages).
Feed it raw bytes via SseDecoder::feed and call SseDecoder::finish
when the stream ends. An SSE event is delimited by a blank line.
Implementations§
Source§impl SseDecoder
impl SseDecoder
Trait Implementations§
Auto Trait Implementations§
impl Forget for SseDecoder
impl Freeze for SseDecoder
impl Move for SseDecoder
impl RefUnwindSafe for SseDecoder
impl Send for SseDecoder
impl Sync for SseDecoder
impl Unpin for SseDecoder
impl UnsafeUnpin 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