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

Method wants_write

crates/stdlib/src/ssl/compat.rs:287–292  ·  view source on GitHub ↗

Check if connection wants to write data

(&self)

Source from the content-addressed store, hash-verified

285
286 /// Check if connection wants to write data
287 pub fn wants_write(&self) -> bool {
288 match self {
289 TlsConnection::Client(conn) => conn.wants_write(),
290 TlsConnection::Server(conn) => conn.wants_write(),
291 }
292 }
293
294 /// Read TLS data from socket
295 pub fn read_tls(&mut self, reader: &mut dyn std::io::Read) -> std::io::Result<usize> {

Callers 8

shutdownMethod · 0.80
write_pending_tlsMethod · 0.80
handshake_write_loopFunction · 0.80
handshake_read_dataFunction · 0.80
ssl_do_handshakeFunction · 0.80
ssl_readFunction · 0.80
ssl_writeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected