pub struct TimeQuality {
pub clock_failure: bool,
pub clock_not_synchronized: bool,
pub leap_seconds_known: bool,
pub time_accuracy: i32,
}
Expand description
Information about the quality of the time source of the sending IED.
Fields§
§clock_failure: bool
If true, the time source of the sending device is unreliable and the value of the time stamp shall be ignored.
clock_not_synchronized: bool
If true, the time source of the sending device is not synchronised with the external UTC time.
leap_seconds_known: bool
If true, the value in ‘P_Timestamp.SecondSinceEpoch’ contains all leap seconds occurred. Otherwise, it does not take into account the leap seconds that occurred before the initialization of the time source of the device. Instead, the seconds since start of the epoch are calculated from the current date assuming a constant day length of 86 400 seconds. Note: If a UTC time master clock is used and accessible, this value should always be true.
time_accuracy: i32
Information about the quality of the time source of the sending IED.
Implementations§
Source§impl TimeQuality
impl TimeQuality
Sourcepub fn time_accuracy(&self) -> TimeAccuracyKind
pub fn time_accuracy(&self) -> TimeAccuracyKind
Returns the enum value of time_accuracy
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_time_accuracy(&mut self, value: TimeAccuracyKind)
pub fn set_time_accuracy(&mut self, value: TimeAccuracyKind)
Sets time_accuracy
to the provided enum value.
Trait Implementations§
Source§impl Clone for TimeQuality
impl Clone for TimeQuality
Source§fn clone(&self) -> TimeQuality
fn clone(&self) -> TimeQuality
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TimeQuality
impl Debug for TimeQuality
Source§impl Default for TimeQuality
impl Default for TimeQuality
Source§fn default() -> TimeQuality
fn default() -> TimeQuality
Source§impl Message for TimeQuality
impl Message for TimeQuality
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.