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

Method context

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

Source from the content-addressed store, hash-verified

2505 }
2506 #[pygetset]
2507 fn context(&self) -> PyRef<PySslContext> {
2508 self.ctx.read().clone()
2509 }
2510 #[pygetset(setter)]
2511 fn set_context(&self, value: PyRef<PySslContext>, vm: &VirtualMachine) -> PyResult<()> {
2512 // Get SSL pointer - use thread-local during handshake to avoid deadlock

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected