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

Method sock

crates/stdlib/src/socket.rs:991–994  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

989 }
990
991 pub fn sock(&self) -> io::Result<PyMappedRwLockReadGuard<'_, Socket>> {
992 self.sock_opt()
993 .ok_or_else(|| io::Error::from_raw_os_error(CLOSED_ERR))
994 }
995
996 fn init_inner(
997 &self,

Callers 15

readMethod · 0.80
writeMethod · 0.80
flushMethod · 0.80
sock_op_timeout_errMethod · 0.80
connect_innerMethod · 0.80
delMethod · 0.80
bindMethod · 0.80
listenMethod · 0.80
_acceptMethod · 0.80
recvMethod · 0.80
recv_intoMethod · 0.80
recvfromMethod · 0.80

Calls 2

ok_or_elseMethod · 0.80
sock_optMethod · 0.80

Tested by

no test coverage detected