pub struct Quality {
pub detail_qual: Option<DetailQual>,
pub operator_blocked: bool,
pub source: i32,
pub test: bool,
pub validity: i32,
}
Expand description
Quality contains data that describe the quality of the data from the server. Quality of the data is also related to the mode of a logical node. Further details can be found in IEC 61850-7-4. The different quality attributes are not independent.The default value shall be applied if the functionality of the related attribute is not supported. The mapping may specify to exclude the attribute from the message if it is not supported or if the default value applies.
Fields§
§detail_qual: Option<DetailQual>
Describes some reasons in case ‘validity’ is not ‘good’.
operator_blocked: bool
(default=false) If true, further update of the value has been blocked by an operator. The value shall be the information that was acquired before blocking. If this flag is set, then the ‘detailQual.oldData’ shall also be set. The operator shall use the data attribute ‘CDC.blkEna’ to block the update of the value. NOTE Both an operator as well as an automatic function may freeze communication updating as well as input updating. In both cases, ‘detailQual.oldData’ will be set. If the blocking is done by an operator, then this flag is set additionally, and an operator activity is required to clear the condition.
source: i32
(default=process) Defines the source of a value. NOTE 1 Substitution may be done locally or via the communication services. In the second case, specific attributes with a FC=SV are used. NOTE 2 There are various means to clear a substitution. As an example, a substitution that was done following an invalid condition may be cleared automatically if the invalid condition is cleared. However, this is a local issue and therefore not within the scope of this standard.
test: bool
(default=false) If true, the value is a test value. The processing of the test quality in the client shall be as described in IEC 61850-7-4. This bit shall be completely independent from the other bits within the quality descriptor.
validity: i32
Validity of the value, as condensed information for the client. In case this value is not ‘good’, some reasons may be found in the ‘detailQual’.
Implementations§
Source§impl Quality
impl Quality
Sourcepub fn source(&self) -> SourceKind
pub fn source(&self) -> SourceKind
Returns the enum value of source
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_source(&mut self, value: SourceKind)
pub fn set_source(&mut self, value: SourceKind)
Sets source
to the provided enum value.
Sourcepub fn validity(&self) -> ValidityKind
pub fn validity(&self) -> ValidityKind
Returns the enum value of validity
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_validity(&mut self, value: ValidityKind)
pub fn set_validity(&mut self, value: ValidityKind)
Sets validity
to the provided enum value.
Trait Implementations§
Source§impl Message for Quality
impl Message for Quality
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
.