Trait trillium_sse::Eventable
source · pub trait Eventable: Unpin + Send + Sync + 'static {
// Required method
fn data(&self) -> &str;
// Provided methods
fn event_type(&self) -> Option<&str> { ... }
fn id(&self) -> Option<&str> { ... }
}
Expand description
Required Methods§
Provided Methods§
sourcefn event_type(&self) -> Option<&str>
fn event_type(&self) -> Option<&str>
return the event type, optionally