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

Method is_session_resumed

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

Check if session was resumed

(&self)

Source from the content-addressed store, hash-verified

333
334 /// Check if session was resumed
335 pub fn is_session_resumed(&self) -> bool {
336 use rustls::HandshakeKind;
337 match self {
338 TlsConnection::Client(conn) => {
339 matches!(conn.handshake_kind(), Some(HandshakeKind::Resumed))
340 }
341 TlsConnection::Server(conn) => {
342 matches!(conn.handshake_kind(), Some(HandshakeKind::Resumed))
343 }
344 }
345 }
346
347 /// Send close_notify alert
348 pub fn send_close_notify(&mut self) {

Callers 1

complete_handshakeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected