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

Method set_post_handshake_auth

crates/stdlib/src/openssl.rs:1031–1039  ·  view source on GitHub ↗
(
            &self,
            value: Option<PyObjectRef>,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

1029 }
1030 #[pygetset(setter)]
1031 fn set_post_handshake_auth(
1032 &self,
1033 value: Option<PyObjectRef>,
1034 vm: &VirtualMachine,
1035 ) -> PyResult<()> {
1036 let value = value.ok_or_else(|| vm.new_attribute_error("cannot delete attribute"))?;
1037 *self.post_handshake_auth.lock() = value.is_true(vm)?;
1038 Ok(())
1039 }
1040
1041 #[cfg(ossl110)]
1042 #[pygetset]

Callers

nothing calls this directly

Calls 3

ok_or_elseMethod · 0.80
is_trueMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected