Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
read
Method · 0.80
write
Method · 0.80
flush
Method · 0.80
sock_op_timeout_err
Method · 0.80
connect_inner
Method · 0.80
del
Method · 0.80
bind
Method · 0.80
listen
Method · 0.80
_accept
Method · 0.80
recv
Method · 0.80
recv_into
Method · 0.80
recvfrom
Method · 0.80
Calls
2
ok_or_else
Method · 0.80
sock_opt
Method · 0.80
Tested by
no test coverage detected