pub struct SseParser { /* private fields */ }Expand description
An incremental Server-Sent Events reader: feed it bytes as they arrive and take whole frames out.
Follows the WHATWG event-stream format: lines end in \n, \r\n or
\r; a blank line ends a frame; a line beginning : is a comment (a
keep-alive) and is skipped; a frame with no data: is dispatched only
for its id: or retry:, and otherwise dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseParser
impl RefUnwindSafe for SseParser
impl Send for SseParser
impl Sync for SseParser
impl Unpin for SseParser
impl UnsafeUnpin for SseParser
impl UnwindSafe for SseParser
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