pub enum WireMsg {
Hello(HelloPayload),
Ping {
ts: Option<u64>,
},
Pong {
ts: Option<u64>,
},
Cmd(CmdPayload),
Ack(AckPayload),
Event(EventPayload),
}Variants§
Hello(HelloPayload)
Sent by the relay gauge immediately after WebSocket connect.
Ping
Keepalive probe. Originated by the host, relayed to the gauge.
Pong
Keepalive response. Sent by the relay back to the host.
Cmd(CmdPayload)
Command from host → WASM (routed through relay).
The WASM side must reply with an [Ack] carrying the same id.
Ack(AckPayload)
Acknowledgement from WASM → host (routed through relay).
Event(EventPayload)
Unacknowledged event in either direction.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireMsg
impl<'de> Deserialize<'de> for WireMsg
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 WireMsg
impl RefUnwindSafe for WireMsg
impl Send for WireMsg
impl Sync for WireMsg
impl Unpin for WireMsg
impl UnsafeUnpin for WireMsg
impl UnwindSafe for WireMsg
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