Struct PluginInstanceHandler
pub struct PluginInstanceHandler {
instance_name: String,
realtime_db: GCArcRealtimeDatabase,
broker_publisher_handler: GCMessagePublisher,
device_config_manager: DeviceConfigManager,
timeseries_writer: GCTimeseriesWriter,
}Fields§
§instance_name: String§realtime_db: GCArcRealtimeDatabase§broker_publisher_handler: GCMessagePublisher§device_config_manager: DeviceConfigManager§timeseries_writer: GCTimeseriesWriterImplementations§
§impl PluginInstanceHandler
impl PluginInstanceHandler
pub fn new( instance_name: String, realtime_db: GCArcRealtimeDatabase, broker_publisher_handler: GCMessagePublisher, device_config_manager: DeviceConfigManager, timeseries_writer: GCTimeseriesWriter, ) -> Self
Trait Implementations§
§impl Clone for PluginInstanceHandler
impl Clone for PluginInstanceHandler
§fn clone(&self) -> PluginInstanceHandler
fn clone(&self) -> PluginInstanceHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl GCPluginCallbackHandler for PluginInstanceHandler
impl GCPluginCallbackHandler for PluginInstanceHandler
§fn system_log(&self, log_level: GCLogLevel, log: &CStr)
fn system_log(&self, log_level: GCLogLevel, log: &CStr)
Called by the plugin to issue a system log call.
§fn get_last_datapoint_value(
&self,
datapoint_id: GCDatapointID,
) -> Option<GCArc<GCDatapointValue>>
fn get_last_datapoint_value( &self, datapoint_id: GCDatapointID, ) -> Option<GCArc<GCDatapointValue>>
Called by the plugin to get the last value of a datapoint.
§fn publish_datapoint_value(&self, dp_value: &GCDatapointValue) -> bool
fn publish_datapoint_value(&self, dp_value: &GCDatapointValue) -> bool
Called by the plugin to publish a datapoint value.
§fn get_ethernet_interface(&self, name: &CStr) -> Option<GCEthernetInterface>
fn get_ethernet_interface(&self, name: &CStr) -> Option<GCEthernetInterface>
Called by the plugin to retrieve an Ethernet interface configuration by logical name.
Returns interface OS name (e.g., “eth0”), or None if not found or not supported.
§fn get_serial_interface(&self, name: &CStr) -> Option<GCSerialInterface>
fn get_serial_interface(&self, name: &CStr) -> Option<GCSerialInterface>
Called by the plugin to retrieve a serial interface configuration by logical name.
Returns tuple of (interface_path, baud_rate, parity, stop_bits, data_bits), or None if not found or not supported.
§fn store_datapoint_value(&self, dp_value: &GCDatapointValue)
fn store_datapoint_value(&self, dp_value: &GCDatapointValue)
Called by the plugin to store a datapoint value in the timeseries database.
Auto Trait Implementations§
impl Freeze for PluginInstanceHandler
impl !RefUnwindSafe for PluginInstanceHandler
impl Send for PluginInstanceHandler
impl Sync for PluginInstanceHandler
impl Unpin for PluginInstanceHandler
impl UnsafeUnpin for PluginInstanceHandler
impl !UnwindSafe for PluginInstanceHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more