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

Function timeout_error

crates/stdlib/src/socket.rs:3359–3361  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3357 }
3358
3359 fn timeout_error(vm: &VirtualMachine) -> PyRef<PyOSError> {
3360 timeout_error_msg(vm, "timed out".to_owned())
3361 }
3362 pub(crate) fn timeout_error_msg(vm: &VirtualMachine, msg: String) -> PyRef<PyOSError> {
3363 vm.new_os_subtype_error(timeout(vm), None, msg)
3364 }

Callers 1

into_pyexceptionMethod · 0.85

Calls 2

timeout_error_msgFunction · 0.85
to_ownedMethod · 0.45

Tested by

no test coverage detected