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

Method posix_errno

crates/common/src/os.rs:31–33  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

29impl ErrorExt for io::Error {
30 #[cfg(not(windows))]
31 fn posix_errno(&self) -> i32 {
32 self.raw_os_error().unwrap_or(0)
33 }
34 #[cfg(windows)]
35 fn posix_errno(&self) -> i32 {
36 let winerror = self.raw_os_error().unwrap_or(0);

Callers 5

termios_errorFunction · 0.80
connect_innerMethod · 0.80
errnoMethod · 0.80
get_errnoFunction · 0.80
to_os_error_builderMethod · 0.80

Calls 1

winerror_to_errnoFunction · 0.85

Tested by

no test coverage detected