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

Method remove_child

crates/wasmtime/src/runtime/component/concurrent.rs:5209–5217  ·  view source on GitHub ↗
(
        &mut self,
        child: TableId<T>,
        parent: TableId<U>,
    )

Source from the content-addressed store, hash-verified

5207 }
5208
5209 pub fn remove_child<T: 'static, U: 'static>(
5210 &mut self,
5211 child: TableId<T>,
5212 parent: TableId<U>,
5213 ) -> Result<(), ResourceTableError> {
5214 self.table
5215 .get_mut()
5216 .remove_child(Resource::from(child), Resource::from(parent))
5217 }
5218
5219 fn delete<V: 'static>(&mut self, id: TableId<V>) -> Result<V, ResourceTableError> {
5220 self.table.get_mut().delete(Resource::from(id))

Callers 1

joinMethod · 0.45

Calls 2

fromFunction · 0.85
get_mutMethod · 0.45

Tested by

no test coverage detected