pub enum StreamFraming {
Sse,
JsonArray,
NdJson,
}Expand description
How records are delimited inside an HTTP stream, independently of the transport’s chunk boundaries and the vendor’s JSON schema.
This is format metadata, not a decoder. SSE fields remain part of the SSE encoding until a decoder handles them; a byte chunk is never assumed to be a complete event or JSON value.
Variants§
Sse
JsonArray
A single JSON array delivered incrementally, including [ and ].
NdJson
Separate JSON values delimited by newlines (NDJSON).
Trait Implementations§
Source§impl Clone for StreamFraming
impl Clone for StreamFraming
impl Copy for StreamFraming
Source§impl Debug for StreamFraming
impl Debug for StreamFraming
impl Eq for StreamFraming
Source§impl PartialEq for StreamFraming
impl PartialEq for StreamFraming
impl StructuralPartialEq for StreamFraming
Auto Trait Implementations§
impl Freeze for StreamFraming
impl RefUnwindSafe for StreamFraming
impl Send for StreamFraming
impl Sync for StreamFraming
impl Unpin for StreamFraming
impl UnsafeUnpin for StreamFraming
impl UnwindSafe for StreamFraming
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