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

Method parent_frame

crates/debugger/src/host/api.rs:909–921  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Frame>,
        d: Resource<Debuggee>,
    )

Source from the content-addressed store, hash-verified

907 }
908
909 async fn parent_frame(
910 &mut self,
911 self_: Resource<Frame>,
912 d: Resource<Debuggee>,
913 ) -> Result<Option<Resource<Frame>>> {
914 let frame = self.get(&self_)?.0.clone();
915 let d = debugger(self, &d)?;
916 let parent = d.frame_parent(frame).await?;
917 match parent {
918 Some(p) => Ok(Some(self.push(Frame(p))?)),
919 None => Ok(None),
920 }
921 }
922
923 async fn drop(&mut self, rep: Resource<Frame>) -> Result<()> {
924 self.delete(rep)?;

Callers 1

update_on_stopMethod · 0.80

Calls 7

debuggerFunction · 0.85
OkFunction · 0.85
frame_parentMethod · 0.80
FrameClass · 0.70
cloneMethod · 0.45
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected