pub enum ProtocolEvent {
Token(String),
Reasoning(String),
ToolCallChunk(ToolCallChunk),
Usage(UsageStats),
}Expand description
Raw event fragments produced by individual provider implementations.
These are mapped to public events in src/msg.rs.
Variants§
Trait Implementations§
Source§impl Clone for ProtocolEvent
impl Clone for ProtocolEvent
Source§fn clone(&self) -> ProtocolEvent
fn clone(&self) -> ProtocolEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProtocolEvent
impl RefUnwindSafe for ProtocolEvent
impl Send for ProtocolEvent
impl Sync for ProtocolEvent
impl Unpin for ProtocolEvent
impl UnsafeUnpin for ProtocolEvent
impl UnwindSafe for ProtocolEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more