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

Method ssl_read

crates/stdlib/src/openssl.rs:2446–2451  ·  view source on GitHub ↗

Read data from SSL connection

(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

2444
2445 // Read data from SSL connection
2446 fn ssl_read(&mut self, buf: &mut [u8]) -> Result<usize, ssl::Error> {
2447 match self {
2448 SslConnection::Socket(stream) => stream.ssl_read(buf),
2449 SslConnection::Bio(stream) => stream.ssl_read(buf),
2450 }
2451 }
2452
2453 // Get SSL shutdown state
2454 fn get_shutdown(&mut self) -> ssl::ShutdownState {

Callers 1

readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected