Trait trillium_sse::Eventable
source · [−]pub trait Eventable: Unpin + Send + Sync + 'static {
fn data(&self) -> &str;
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