pub trait RawModule: Sized {
type Linker: Linker<Self>;
type LinkerHandle<'a>: LinkerHandle<'a, Self>;
type Func;
// Required method
fn call<T>(
&self,
name: &str,
args: &[u8],
f: impl FnOnce(&[u8]) -> Result<T>,
) -> Result<T>;
}Expand description
Represents a raw plugin module.
Required Associated Types§
Sourcetype LinkerHandle<'a>: LinkerHandle<'a, Self>
type LinkerHandle<'a>: LinkerHandle<'a, Self>
The linker handle type.
Required Methods§
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.