pub trait StreamEvent:
Send
+ Sync
+ Debug {
// Required method
fn event_type(&self) -> &'static str;
}Expand description
Incremental event emitted during an AI stream.
Required Methods§
Sourcefn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Stable event type emitted on the wire.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".