pub enum ConversationEvent {
Opened {
conversation_id: ConversationId,
},
Message {
conversation_id: ConversationId,
},
Closing {
conversation_id: ConversationId,
},
Closed {
conversation_id: ConversationId,
},
Error {
conversation_id: ConversationId,
error: SdkError,
},
}Expand description
Lifecycle events emitted by a conversation.
Every event carries the application-visible conversation identifier so lifecycle streams can be correlated without exposing process identifiers, protocol frames, or transport details.
Variants§
Opened
The conversation was opened.
Fields
§
conversation_id: ConversationIdIdentifier for the conversation that emitted this event.
Message
A message was observed within the conversation.
Fields
§
conversation_id: ConversationIdIdentifier for the conversation that emitted this event.
Closing
The conversation has begun closing.
Fields
§
conversation_id: ConversationIdIdentifier for the conversation that emitted this event.
Closed
The conversation closed.
Fields
§
conversation_id: ConversationIdIdentifier for the conversation that emitted this event.
Error
The conversation encountered an error.
Fields
§
conversation_id: ConversationIdIdentifier for the conversation that emitted this event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConversationEvent
impl RefUnwindSafe for ConversationEvent
impl Send for ConversationEvent
impl Sync for ConversationEvent
impl Unpin for ConversationEvent
impl UnsafeUnpin for ConversationEvent
impl UnwindSafe for ConversationEvent
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