pub enum DevToolsServerMessage {
Hello {
protocol: u32,
},
Snapshot {
snapshot: DebugSnapshot,
},
Pong,
Error {
message: String,
},
}Expand description
Tagged host-to-client DevTools protocol message.
§Examples
use ailloli_ui_devtools_core::DevToolsServerMessage;
let hello = DevToolsServerMessage::Hello { protocol: 1 };
assert_eq!(serde_json::to_string(&hello).unwrap(), r#"{"type":"hello","protocol":1}"#);Variants§
Hello
Announces the host-selected protocol version.
Snapshot
Delivers a complete replacement snapshot.
Fields
§
snapshot: DebugSnapshotCurrent retained-tree diagnostic state.
Pong
Liveness response with no payload.
Error
Human-readable protocol or host failure.
Trait Implementations§
Source§impl Clone for DevToolsServerMessage
impl Clone for DevToolsServerMessage
Source§fn clone(&self) -> DevToolsServerMessage
fn clone(&self) -> DevToolsServerMessage
Returns a copy 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 moreSource§impl Debug for DevToolsServerMessage
impl Debug for DevToolsServerMessage
Source§impl<'de> Deserialize<'de> for DevToolsServerMessage
impl<'de> Deserialize<'de> for DevToolsServerMessage
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
Source§impl PartialEq for DevToolsServerMessage
impl PartialEq for DevToolsServerMessage
Source§impl Serialize for DevToolsServerMessage
impl Serialize for DevToolsServerMessage
impl StructuralPartialEq for DevToolsServerMessage
Auto Trait Implementations§
impl Freeze for DevToolsServerMessage
impl RefUnwindSafe for DevToolsServerMessage
impl Send for DevToolsServerMessage
impl Sync for DevToolsServerMessage
impl Unpin for DevToolsServerMessage
impl UnwindSafe for DevToolsServerMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.