pub trait InPlaceModule: Sync + Send {
// Required method
fn init(module: &'static ThisModule) -> impl PinInit<Self, Error>;
}
Expand description
A module that is pinned and initialised in-place.
Required Methods§
Sourcefn init(module: &'static ThisModule) -> impl PinInit<Self, Error>
fn init(module: &'static ThisModule) -> impl PinInit<Self, Error>
Creates an initialiser for the module.
It is called when the module is loaded.
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.