String form of `inject_host_result_by_id`. */
(&mut self, id: u64, message: &str)
| 115 | |
| 116 | /* String form of `inject_host_result_by_id`. */ |
| 117 | pub fn push_host_result_by_id(&mut self, id: u64, message: &str) -> Result<bool, VmErr> { |
| 118 | let val = self.heap.alloc(HeapObj::Str(message.into()))?; |
| 119 | Ok(self.inject_host_result_by_id(id, val)) |
| 120 | } |
| 121 | |
| 122 | /* Raise `e` inside the `WaitingHostCall(id)` coro at its saved try-frame, or mark it Errored if none; false if no coro is parked on `id`. A failed host call wakes only its coro, leaving siblings untouched. */ |
| 123 | pub fn inject_host_error_by_id(&mut self, id: u64, e: VmErr) -> bool { |