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

Method errno

crates/stdlib/src/socket.rs:2739–2745  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2737 }
2738 impl IoOrPyException {
2739 fn errno(self) -> PyResult<i32> {
2740 match self {
2741 Self::Timeout => Ok(errcode!(EWOULDBLOCK)),
2742 Self::Io(err) => Ok(err.posix_errno()),
2743 Self::Py(exc) => Err(exc),
2744 }
2745 }
2746 }
2747 impl IntoPyException for IoOrPyException {
2748 #[inline]

Callers 1

connect_exMethod · 0.45

Calls 2

posix_errnoMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected