#[non_exhaustive]pub enum ServiceType {
Show 54 variants
GetServerDirectory,
Associate,
Abort,
Release,
GetLogicalDeviceDirectory,
GetAllDataValues,
GetDataValues,
SetDataValues,
GetDataDirectory,
GetDataDefinition,
GetDataSetValues,
SetDataSetValues,
CreateDataSet,
DeleteDataSet,
GetDataSetDirectory,
SelectActiveSG,
SelectEditSG,
SetEditSGValue,
ConfirmEditSGValues,
GetEditSGValue,
GetSGCBValues,
Report,
GetBRCBValues,
SetBRCBValues,
GetURCBValues,
SetURCBValues,
GetLCBValues,
SetLCBValues,
QueryLogByTime,
QueryLogAfter,
GetLogStatusValues,
SendGOOSEMessage,
GetGoCBValues,
SetGoCBValues,
GetGoReference,
GetGOOSEElementNumber,
SendMSVMessage,
GetMSVCBValues,
SetMSVCBValues,
SendUSVMessage,
GetUSVCBValues,
SetUSVCBValues,
Select,
SelectWithValue,
Cancel,
Operate,
CommandTermination,
TimeActivatedOperate,
GetFile,
SetFile,
DeleteFile,
GetFileAttributeValues,
TimeSynchronization,
InternalChange,
}Expand description
The service a tracking data object is reporting on (IEC 61850-7-2 Table 26 ✅).
The whole list, not only the tracked half: §15.3.2 says a GetBRCBValues is not tracked,
but the enumeration is what a client decodes against.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GetServerDirectory
Associate
Abort
Release
GetLogicalDeviceDirectory
GetAllDataValues
GetDataValues
SetDataValues
GetDataDirectory
GetDataDefinition
GetDataSetValues
SetDataSetValues
CreateDataSet
DeleteDataSet
GetDataSetDirectory
SelectActiveSG
SelectEditSG
SetEditSGValue
ConfirmEditSGValues
GetEditSGValue
GetSGCBValues
Report
GetBRCBValues
SetBRCBValues
GetURCBValues
SetURCBValues
GetLCBValues
SetLCBValues
QueryLogByTime
QueryLogAfter
GetLogStatusValues
SendGOOSEMessage
GetGoCBValues
SetGoCBValues
GetGoReference
GetGOOSEElementNumber
SendMSVMessage
GetMSVCBValues
SetMSVCBValues
SendUSVMessage
GetUSVCBValues
SetUSVCBValues
Select
SelectWithValue
Cancel
Operate
CommandTermination
TimeActivatedOperate
GetFile
SetFile
DeleteFile
GetFileAttributeValues
TimeSynchronization
InternalChange
Something the server did on its own: an association that ended and released a control block, or a reservation that ran out. §15.3.2.2.2 names exactly those two.
Implementations§
Source§impl ServiceType
impl ServiceType
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The name IEC 61850-7-2 gives it, which is also what an SCL EnumVal spells.
Sourcepub fn parse(name: &str) -> Option<ServiceType>
pub fn parse(name: &str) -> Option<ServiceType>
The service of that name, if the standard has one.
Sourcepub fn table_ordinal(self) -> i64
pub fn table_ordinal(self) -> i64
Its position in Table 26 — the ordinal to use when the file declares no EnumType.
This is a fallback and not a claim: the name-to-number mapping is IEC 61850-8-1’s and is paywalled, so a file that declares the enumeration wins, always.
Trait Implementations§
Source§impl Clone for ServiceType
impl Clone for ServiceType
impl Copy for ServiceType
Source§impl Debug for ServiceType
impl Debug for ServiceType
Source§impl Display for ServiceType
impl Display for ServiceType
impl Eq for ServiceType
Source§impl Hash for ServiceType
impl Hash for ServiceType
Source§impl Ord for ServiceType
impl Ord for ServiceType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ServiceType
impl PartialEq for ServiceType
Source§impl PartialOrd for ServiceType
impl PartialOrd for ServiceType
impl StructuralPartialEq for ServiceType
Auto Trait Implementations§
impl Forget for ServiceType
impl Freeze for ServiceType
impl Move for ServiceType
impl RefUnwindSafe for ServiceType
impl Send for ServiceType
impl Sync for ServiceType
impl Unpin for ServiceType
impl UnsafeUnpin for ServiceType
impl UnwindSafe for ServiceType
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