(self)
| 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] |
no test coverage detected