ObsCalldataExt

Trait ObsCalldataExt 

Source
pub trait ObsCalldataExt {
    // Required method
    unsafe fn call_proc_handler<T: Into<ObsString>>(
        &self,
        proc_handler: &Sendable<*mut proc_handler_t>,
        name: T,
    ) -> Result<CalldataWrapper, ObsError>;
}
Expand description

Extension trait on ObsRuntime to call a proc handler and return a RAII calldata wrapper.

Required Methods§

Source

unsafe fn call_proc_handler<T: Into<ObsString>>( &self, proc_handler: &Sendable<*mut proc_handler_t>, name: T, ) -> Result<CalldataWrapper, ObsError>

§Safety

Make sure that the proc_handler pointer is valid.

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.

Implementors§