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

Method timeout_deadline

crates/stdlib/src/openssl.rs:2298–2300  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2296
2297 impl SocketStream {
2298 fn timeout_deadline(&self) -> SocketDeadline {
2299 self.0.get_timeout().map(|d| Instant::now() + d)
2300 }
2301
2302 fn select(&self, needs: SslNeeds, deadline: &SocketDeadline) -> SelectRet {
2303 let sock = match self.0.sock_opt() {

Callers 4

shutdownMethod · 0.80
do_handshakeMethod · 0.80
writeMethod · 0.80
readMethod · 0.80

Calls 2

get_timeoutMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected