pub trait PyInvokeHandlerExt<R: Runtime>: Manager<R> + SealedTrait<R> {
// Provided methods
fn try_py_invoke_handler(
&self,
) -> PyInvokeHandlerStateResult<impl Deref<Target = PyObject>> { ... }
fn py_invoke_handler(&self) -> impl Deref<Target = PyObject> { ... }
}
Expand description
Gets the py_invoke_handler
passed in when initializing the plugin.
Provided Methods§
fn try_py_invoke_handler( &self, ) -> PyInvokeHandlerStateResult<impl Deref<Target = PyObject>>
Sourcefn py_invoke_handler(&self) -> impl Deref<Target = PyObject>
fn py_invoke_handler(&self) -> impl Deref<Target = PyObject>
§Panic
If PyInvokeHandlerExt::try_py_invoke_handler returns an error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.