pub trait Eventsource: Sized {
// Required method
fn eventsource(self) -> EventStream<Self>;
}
Expand description
Main entrypoint for creating crate::Event
streams
Required Methods§
Sourcefn eventsource(self) -> EventStream<Self>
fn eventsource(self) -> EventStream<Self>
Create an event stream from a stream of bytes
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.