Struct sGCDatapointValue
#[repr(C)]pub struct sGCDatapointValue {
pub type_: u32,
pub value: sGCDatapointValue__bindgen_ty_1,
pub datapoint_id: u64,
pub quality: u16,
pub timestamp: u64,
}Expand description
@brief The value of a datapoint
It is used to publish data and also to receive data from the core via subscription or trough the RealtimeDatabase.
Fields§
§type_: u32@brief The type of the datapoint value This type depends on the datapoint’s @ref value field.
@see @ref eGCDatapointValueType “GCDatapointValueType”
value: sGCDatapointValue__bindgen_ty_1§datapoint_id: u64@brief The identifier for the datapoint
Each datapoint has it’s own datapoint identifier, this is used to identify the datapoint in the system. This can be retrieved from the datapoint configuration.
quality: u16@brief Represents the quality of the datapoint value
This is a bit field mimicking the same structure as the one used in IEC-61850-8-1 for quality. @see IEC-61850-8-1
timestamp: u64@brief The timestamp when the value was generated in nanoseconds since the Unix epoch
Trait Implementations§
§impl Clone for sGCDatapointValue
impl Clone for sGCDatapointValue
§fn clone(&self) -> sGCDatapointValue
fn clone(&self) -> sGCDatapointValue
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 moreimpl Copy for sGCDatapointValue
Auto Trait Implementations§
impl Freeze for sGCDatapointValue
impl RefUnwindSafe for sGCDatapointValue
impl Send for sGCDatapointValue
impl Sync for sGCDatapointValue
impl Unpin for sGCDatapointValue
impl UnsafeUnpin for sGCDatapointValue
impl UnwindSafe for sGCDatapointValue
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