Skip to main content

GCDatapointSubscriber

Trait GCDatapointSubscriber 

pub trait GCDatapointSubscriber: Sync + Send {
    // Required methods
    fn update_datapoint_value(
        &self,
        data_value: GCArc<GCDatapointValue>,
    ) -> Result<(), GCMessageBrokerError>;
    fn unique_identifier(&self) -> &GCSubscriberIdentifier;
}
Expand description

A trait required to receive realtime event information from the message broker Any subscriber must implement implement this trait in order to be registered in the MessageBroker

Required Methods§

fn update_datapoint_value( &self, data_value: GCArc<GCDatapointValue>, ) -> Result<(), GCMessageBrokerError>

Sends a datapoint value to the Plugin, this calls issues a call to gc_plugin_receive_datapoint exported by the plugin

fn unique_identifier(&self) -> &GCSubscriberIdentifier

Returns the unique identifier of the subscriber

Trait Implementations§

§

impl Debug for dyn GCDatapointSubscriber

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§