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

Method get_ref

crates/stdlib/src/openssl.rs:2417–2422  ·  view source on GitHub ↗

Get underlying socket stream reference (only for socket mode)

(&self)

Source from the content-addressed store, hash-verified

2415
2416 // Get underlying socket stream reference (only for socket mode)
2417 fn get_ref(&self) -> Option<&SocketStream> {
2418 match self {
2419 SslConnection::Socket(stream) => Some(stream.get_ref()),
2420 SslConnection::Bio(_) => None,
2421 }
2422 }
2423
2424 // Check if this is in BIO mode
2425 fn is_bio(&self) -> bool {

Callers 8

is_bio_eofMethod · 0.80
shutdownMethod · 0.80
do_handshakeMethod · 0.80
writeMethod · 0.80
readMethod · 0.80
readMethod · 0.80
getbufferMethod · 0.80
_io.rsFile · 0.80

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected