pub enum SSEEvent {
ToolResponse {
request_id: String,
server_id: String,
tool_name: String,
data: Value,
},
ToolError {
request_id: String,
server_id: String,
tool_name: String,
error: String,
},
ServerStatus {
server_name: String,
server_id: String,
status: String,
},
Notification {
title: String,
message: String,
level: String,
},
}Expand description
Server-Sent Event types
Variants§
ToolResponse
Tool response event
Fields
ToolError
Tool error event
Fields
ServerStatus
Server status update event
Notification
General notification event
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SSEEvent
impl<'de> Deserialize<'de> for SSEEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SSEEvent
impl RefUnwindSafe for SSEEvent
impl Send for SSEEvent
impl Sync for SSEEvent
impl Unpin for SSEEvent
impl UnwindSafe for SSEEvent
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