MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / push_host_result

Method push_host_result

compiler/src/modules/vm/init.rs:111–114  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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> {

Callers 1

packages_casesFunction · 0.80

Calls 2

inject_host_resultMethod · 0.80
allocMethod · 0.45

Tested by 1

packages_casesFunction · 0.64