pub enum Response {
Cheat(i32),
Fuel(Callback, Fuel),
CPU(CPU),
Memory(Memory),
Log(String),
AppID((String, String)),
Ok,
}
Expand description
Messages that the runtime sends to connected clients.
Variants§
Cheat(i32)
The value returned by the cheat
callback.
Fuel(Callback, Fuel)
Instructions executed by a callback.
CPU(CPU)
CPU time spent running code vs sleeping.
Memory(Memory)
Linear memory used by the wasm app.
Log(String)
Log record.
AppID((String, String))
Full ID of the currently running app.
Ok
A generic confirmation response for a request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Encode<'_> for Response
impl Encode<'_> for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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