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

Function create_ssl_want_read_error

crates/stdlib/src/ssl/error.rs:104–110  ·  view source on GitHub ↗

Helper functions to create SSL exceptions with proper errno attribute

(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

102
103 // Helper functions to create SSL exceptions with proper errno attribute
104 pub fn create_ssl_want_read_error(vm: &VirtualMachine) -> PyRef<PyOSError> {
105 vm.new_os_subtype_error(
106 PySSLWantReadError::class(&vm.ctx).to_owned(),
107 Some(SSL_ERROR_WANT_READ),
108 "The operation did not complete (read)",
109 )
110 }
111
112 pub fn create_ssl_want_write_error(vm: &VirtualMachine) -> PyRef<PyOSError> {
113 vm.new_os_subtype_error(

Callers 6

shutdownMethod · 0.85
convert_ssl_errorFunction · 0.85
readMethod · 0.85
writeMethod · 0.85
shutdownMethod · 0.85
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