MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_events

Function get_events

crates/vm/src/stdlib/sys/monitoring.rs:621–625  ·  view source on GitHub ↗
(tool_id: i32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

619}
620
621fn get_events(tool_id: i32, vm: &VirtualMachine) -> PyResult<u32> {
622 let tool = check_valid_tool(tool_id, vm)?;
623 let state = vm.state.monitoring.lock();
624 Ok(state.global_events[tool])
625}
626
627fn set_events(tool_id: i32, event_set: i32, vm: &VirtualMachine) -> PyResult<()> {
628 let tool = check_valid_tool(tool_id, vm)?;

Callers

nothing calls this directly

Calls 2

check_valid_toolFunction · 0.85
lockMethod · 0.45

Tested by

no test coverage detected