Skip to main content

Controller

Trait Controller 

Source
pub trait Controller {
    // Required methods
    fn start(&mut self) -> Result<(), SdkError>;
    fn stop(&mut self);
    fn is_running(&self) -> bool;
}
Expand description

Common lifecycle interface for SDK controllers.

Controllers wrap higher-level behavior (sensing/actuation) on top of FEAGI networking and device registration.

Required Methods§

Source

fn start(&mut self) -> Result<(), SdkError>

Start the controller and any background loops.

Source

fn stop(&mut self)

Stop the controller and release resources.

Source

fn is_running(&self) -> bool

Returns true if the controller is actively running.

Implementors§