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

Method set

compiler/src/abi.rs:140–142  ·  view source on GitHub ↗

Replace any pending error with `(kind, msg)`.

(&mut self, kind: u32, msg: String)

Source from the content-addressed store, hash-verified

138
139 // Replace any pending error with `(kind, msg)`.
140 pub fn set(&mut self, kind: u32, msg: String) {
141 self.0 = Some((kind, msg));
142 }
143
144 // Convenience: stash a typed error.
145 pub fn set_typed(&mut self, kind: ErrorKind, msg: String) {

Callers 15

allocFunction · 0.80
panicFunction · 0.80
host_edge_throwFunction · 0.80
runFunction · 0.80
writeBytesFunction · 0.80
writeSrcFunction · 0.80
injectEventFunction · 0.80
worker.jsFile · 0.80
loadHostModuleFunction · 0.80
sendFunction · 0.80
fetchWithLockfileFunction · 0.80
stageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected