pub struct Decoder { /* private fields */ }Expand description
An incremental text/event-stream parser, following the HTML standard: lines end with CR, LF or CRLF, a line
starting with : is a comment, an empty line dispatches the event, and an event without data: is not
dispatched. Feed it the body as it arrives.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Decoder
impl Freeze for Decoder
impl Move for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnsafeUnpin for Decoder
impl UnwindSafe for Decoder
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