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

Method set_servername_callback

crates/stdlib/src/ssl.rs:1656–1663  ·  view source on GitHub ↗
(
            &self,
            callback: Option<PyObjectRef>,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

1654
1655 #[pymethod]
1656 fn set_servername_callback(
1657 &self,
1658 callback: Option<PyObjectRef>,
1659 vm: &VirtualMachine,
1660 ) -> PyResult<()> {
1661 // Alias for set_sni_callback
1662 self.set_sni_callback(callback, vm)
1663 }
1664
1665 #[pygetset]
1666 fn security_level(&self) -> i32 {

Callers

nothing calls this directly

Calls 1

set_sni_callbackMethod · 0.45

Tested by

no test coverage detected