pub enum SseChunk<T> {
Data(T),
Done,
}Expand description
Either a decoded JSON value from one SSE data payload or an explicit end marker.
Variants§
Data(T)
Successfully deserialized JSON object.
Done
Synthetic item emitted when DoneMarkerPolicy
matches (then stream ends).
Trait Implementations§
impl<T> StructuralPartialEq for SseChunk<T>
Auto Trait Implementations§
impl<T> Freeze for SseChunk<T>where
T: Freeze,
impl<T> RefUnwindSafe for SseChunk<T>where
T: RefUnwindSafe,
impl<T> Send for SseChunk<T>where
T: Send,
impl<T> Sync for SseChunk<T>where
T: Sync,
impl<T> Unpin for SseChunk<T>where
T: Unpin,
impl<T> UnsafeUnpin for SseChunk<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SseChunk<T>where
T: UnwindSafe,
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