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

Method new

crates/stdlib/src/openssl.rs:547–551  ·  view source on GitHub ↗
(vm: &VirtualMachine, ssl_ptr: *mut sys::SSL)

Source from the content-addressed store, hash-verified

545
546 impl HandshakeVmGuard {
547 fn new(vm: &VirtualMachine, ssl_ptr: *mut sys::SSL) -> Self {
548 HANDSHAKE_VM.with(|cell| cell.set(Some(vm as *const _)));
549 HANDSHAKE_SSL_PTR.with(|cell| cell.set(Some(ssl_ptr)));
550 HandshakeVmGuard { _ssl_ptr: ssl_ptr }
551 }
552 }
553
554 impl Drop for HandshakeVmGuard {

Callers

nothing calls this directly

Calls 9

getFunction · 0.85
MemBioSliceClass · 0.85
withMethod · 0.80
SomeClass · 0.50
initFunction · 0.50
ErrClass · 0.50
setMethod · 0.45
as_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected