pub struct LagoFormat;Expand description
Native Lago SSE format. Events are sent as-is in their JSON envelope representation, preserving the full event structure.
Trait Implementations§
Source§impl SseFormat for LagoFormat
impl SseFormat for LagoFormat
Source§fn format(&self, event: &EventEnvelope) -> Vec<SseFrame>
fn format(&self, event: &EventEnvelope) -> Vec<SseFrame>
Convert an event envelope into zero or more SSE frames. Read more
Source§fn done_frame(&self) -> Option<SseFrame>
fn done_frame(&self) -> Option<SseFrame>
An optional “done” frame to send when the stream terminates.
Auto Trait Implementations§
impl Freeze for LagoFormat
impl RefUnwindSafe for LagoFormat
impl Send for LagoFormat
impl Sync for LagoFormat
impl Unpin for LagoFormat
impl UnwindSafe for LagoFormat
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