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

Method write

crates/stdlib/src/socket.rs:976–978  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

974
975 impl Write for &PySocket {
976 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
977 (&mut &*self.sock()?).write(buf)
978 }
979
980 fn flush(&mut self) -> std::io::Result<()> {
981 (&mut &*self.sock()?).flush()

Callers 3

init_innerMethod · 0.45
closeMethod · 0.45
detachMethod · 0.45

Calls 1

sockMethod · 0.80

Tested by

no test coverage detected