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

Method get_epoll

crates/stdlib/src/select.rs:623–629  ·  view source on GitHub ↗
(
                &self,
                vm: &VirtualMachine,
            )

Source from the content-addressed store, hash-verified

621 }
622
623 fn get_epoll(
624 &self,
625 vm: &VirtualMachine,
626 ) -> PyResult<impl Deref<Target = OwnedFd> + '_> {
627 PyRwLockReadGuard::try_map(self.epoll_fd.read(), |x| x.as_ref())
628 .map_err(|_| vm.new_value_error("I/O operation on closed epoll object"))
629 }
630
631 #[pymethod]
632 fn fileno(&self, vm: &VirtualMachine) -> PyResult<i32> {

Callers 6

filenoMethod · 0.80
registerMethod · 0.80
modifyMethod · 0.80
unregisterMethod · 0.80
pollMethod · 0.80
__enter__Method · 0.80

Calls 2

readMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected