pub trait FramePayload: Send + 'static {
// Required method
fn to_frame(&self, id: EventId) -> Result<SseEvent, SseError>;
}Expand description
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl FramePayload for Value
A JSON payload becomes a message event — unnamed, because Streamable
HTTP does not name its frames and a name here would be a 2026-07-28
client’s problem to have an unexpected field.
impl FramePayload for Value
A JSON payload becomes a message event — unnamed, because Streamable
HTTP does not name its frames and a name here would be a 2026-07-28
client’s problem to have an unexpected field.