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

Function create_ssl_syscall_error

crates/stdlib/src/ssl/error.rs:136–145  ·  view source on GitHub ↗
(
        vm: &VirtualMachine,
        msg: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

134 }
135
136 pub fn create_ssl_syscall_error(
137 vm: &VirtualMachine,
138 msg: impl Into<String>,
139 ) -> PyRef<PyOSError> {
140 vm.new_os_subtype_error(
141 PySSLSyscallError::class(&vm.ctx).to_owned(),
142 Some(SSL_ERROR_SYSCALL),
143 msg.into(),
144 )
145 }
146}

Callers 1

into_py_errMethod · 0.85

Calls 3

new_os_subtype_errorMethod · 0.80
SomeClass · 0.50
to_ownedMethod · 0.45

Tested by

no test coverage detected