Skip to main content

LinsightPlugin

Trait LinsightPlugin 

Source
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§

Source

extern "C-unwind" fn init(&self, ctx: &RPluginCtx) -> RInitResult

Source

extern "C-unwind" fn sample(&self, sensor: RSensorId) -> RSampleResult

Provided Methods§

Source

extern "C-unwind" fn shutdown(&self)

Trait Implementations§

Source§

impl<'stabby_vt_lt> CompoundVt<'stabby_vt_lt> for dyn LinsightPlugin

Source§

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".

Implementors§