pub trait LinsightPlugin: Send + Sync {
// Required methods
extern "C-unwind" fn init(&self, ctx: &RPluginCtx) -> RInitResult;
extern "C-unwind" fn sample(
&self,
sensor: RSensorId,
) -> RSampleResult;
// Provided method
extern "C-unwind" fn shutdown(&self) { ... }
}Required Methods§
extern "C-unwind" fn init(&self, ctx: &RPluginCtx) -> RInitResult
extern "C-unwind" fn sample(&self, sensor: RSensorId) -> RSampleResult
Provided Methods§
Trait Implementations§
Source§impl<'stabby_vt_lt> CompoundVt<'stabby_vt_lt> for dyn LinsightPlugin
impl<'stabby_vt_lt> CompoundVt<'stabby_vt_lt> for dyn LinsightPlugin
Source§type Vt<StabbyNextVtable> = VTable<StabbyVtableLinsightPlugin<'stabby_vt_lt>, StabbyNextVtable>
type Vt<StabbyNextVtable> = VTable<StabbyVtableLinsightPlugin<'stabby_vt_lt>, StabbyNextVtable>
An stabby-generated item for LinsightPlugin
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".