pub enum ServerEnvelope {
Hello {
bridge_version: String,
protocol_version: i32,
runtime: Box<RuntimeStatusSnapshot>,
runtimes: Vec<RuntimeSummary>,
directory_bookmarks: Vec<DirectoryBookmarkRecord>,
directory_history: Vec<DirectoryHistoryRecord>,
pending_requests: Vec<PendingServerRequestRecord>,
},
Response {
request_id: String,
success: bool,
data: Option<Value>,
error: Option<ApiError>,
},
Event {
seq: i64,
event_type: String,
runtime_id: Option<String>,
thread_id: Option<String>,
payload: Value,
},
Pong {
server_time_ms: i64,
},
}Variants§
Hello
Fields
§
runtime: Box<RuntimeStatusSnapshot>§
runtimes: Vec<RuntimeSummary>§
directory_bookmarks: Vec<DirectoryBookmarkRecord>§
directory_history: Vec<DirectoryHistoryRecord>§
pending_requests: Vec<PendingServerRequestRecord>Response
Event
Fields
Pong
Trait Implementations§
Source§impl Debug for ServerEnvelope
impl Debug for ServerEnvelope
Source§impl<'de> Deserialize<'de> for ServerEnvelope
impl<'de> Deserialize<'de> for ServerEnvelope
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 ServerEnvelope
impl RefUnwindSafe for ServerEnvelope
impl Send for ServerEnvelope
impl Sync for ServerEnvelope
impl Unpin for ServerEnvelope
impl UnsafeUnpin for ServerEnvelope
impl UnwindSafe for ServerEnvelope
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