String form of `inject_host_result`: allocates `message` on the heap and injects it. Used by Rust hosts that return text bodies (and test fixtures simulating that path). */
(&mut self, message: &str)
| 109 | |
| 110 | /* String form of `inject_host_result`: allocates `message` on the heap and injects it. Used by Rust hosts that return text bodies (and test fixtures simulating that path). */ |
| 111 | pub fn push_host_result(&mut self, message: &str) -> Result<bool, VmErr> { |
| 112 | let val = self.heap.alloc(HeapObj::Str(message.into()))?; |
| 113 | Ok(self.inject_host_result(val)) |
| 114 | } |
| 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> { |