Trait kernel::InPlaceModule

source ·
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§

source

fn init(module: &'static ThisModule) -> impl PinInit<Self, Error>

Creates an initialiser for the module.

It is called when the module is loaded.

Object Safety§

This trait is not object safe.

Implementors§