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

Method set_owner

crates/stdlib/src/openssl.rs:2496–2501  ·  view source on GitHub ↗
(&self, owner: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2494 }
2495 #[pygetset(setter)]
2496 fn set_owner(&self, owner: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
2497 let mut lock = self.owner.write();
2498 lock.take();
2499 *lock = Some(owner.downgrade(None, vm)?);
2500 Ok(())
2501 }
2502 #[pygetset]
2503 fn server_side(&self) -> bool {
2504 self.socket_type == SslServerOrClient::Server

Callers

nothing calls this directly

Calls 4

SomeClass · 0.50
writeMethod · 0.45
takeMethod · 0.45
downgradeMethod · 0.45

Tested by

no test coverage detected