MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / custom_unpublish

Method custom_unpublish

crates/wasmtime/src/runtime/code_memory.rs:546–554  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

544 }
545
546 fn custom_unpublish(&mut self) -> Result<bool> {
547 if let Some(mem) = self.custom_code_memory.as_ref() {
548 let text = self.text();
549 mem.unpublish_executable(text.as_ptr(), text.len())?;
550 Ok(true)
551 } else {
552 Ok(false)
553 }
554 }
555
556 /// Return a mutable borrow to the code, suitable for editing.
557 ///

Callers 1

unpublishMethod · 0.80

Calls 6

OkFunction · 0.85
unpublish_executableMethod · 0.80
as_refMethod · 0.45
textMethod · 0.45
as_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected