pub enum CosemDataType {
}Expand description
A COSEM common data type (IEC 62056-6-2, Table 3), with A-XDR (BER)
serialization via CosemDataType::serialize_ber /
CosemDataType::deserialize_ber.
Variants§
Null
null-data (tag 0).
Array(Vec<CosemDataType>)
array (tag 1) — a sequence of same-typed elements.
Structure(Vec<CosemDataType>)
structure (tag 2) — a sequence of (possibly differently typed) elements.
Boolean(bool)
boolean (tag 3).
Integer(i8)
integer — signed 8-bit (tag 15).
Long(i16)
long — signed 16-bit (tag 16).
Unsigned(u8)
unsigned — unsigned 8-bit (tag 17).
LongUnsigned(u16)
long-unsigned — unsigned 16-bit (tag 18).
DoubleLong(i32)
double-long — signed 32-bit (tag 5).
DoubleLongUnsigned(u32)
double-long-unsigned — unsigned 32-bit (tag 6).
OctetString(Vec<u8>)
octet-string (tag 9).
DateTime(Vec<u8>)
date-time (tag 25) — a 12-octet date-time value.
BitString(Vec<u8>)
bit-string (tag 4) — held as raw octets.
Enum(u8)
enum — an enumerated 8-bit value (tag 22).
Implementations§
Source§impl CosemDataType
impl CosemDataType
Trait Implementations§
Source§impl Clone for CosemDataType
impl Clone for CosemDataType
Source§fn clone(&self) -> CosemDataType
fn clone(&self) -> CosemDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CosemDataType
impl Debug for CosemDataType
Source§impl<'de> Deserialize<'de> for CosemDataType
impl<'de> Deserialize<'de> for CosemDataType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CosemDataType
impl Display for CosemDataType
Source§impl From<AccessRight> for CosemDataType
impl From<AccessRight> for CosemDataType
Source§fn from(ar: AccessRight) -> Self
fn from(ar: AccessRight) -> Self
Converts to this type from the input type.
Source§impl From<ActionItem> for CosemDataType
impl From<ActionItem> for CosemDataType
Source§fn from(ai: ActionItem) -> Self
fn from(ai: ActionItem) -> Self
Converts to this type from the input type.
Source§impl From<ActionSet> for CosemDataType
impl From<ActionSet> for CosemDataType
Source§impl From<ActionSpecification> for CosemDataType
impl From<ActionSpecification> for CosemDataType
Source§fn from(aspec: ActionSpecification) -> Self
fn from(aspec: ActionSpecification) -> Self
Converts to this type from the input type.
Source§impl From<AssociatedPartnersId> for CosemDataType
impl From<AssociatedPartnersId> for CosemDataType
Source§fn from(ap: AssociatedPartnersId) -> Self
fn from(ap: AssociatedPartnersId) -> Self
Converts to this type from the input type.
Source§impl From<AttributeAccessItem> for CosemDataType
impl From<AttributeAccessItem> for CosemDataType
Source§fn from(item: AttributeAccessItem) -> Self
fn from(item: AttributeAccessItem) -> Self
Converts to this type from the input type.
Source§impl From<BitString> for CosemDataType
impl From<BitString> for CosemDataType
Source§impl From<CaptureObjectDefinition> for CosemDataType
impl From<CaptureObjectDefinition> for CosemDataType
Source§fn from(cod: CaptureObjectDefinition) -> Self
fn from(cod: CaptureObjectDefinition) -> Self
Converts to this type from the input type.
Source§impl From<CellInfo> for CosemDataType
impl From<CellInfo> for CosemDataType
Source§impl From<Certificate> for CosemDataType
impl From<Certificate> for CosemDataType
Source§fn from(c: Certificate) -> Self
fn from(c: Certificate) -> Self
Converts to this type from the input type.
Source§impl From<CommunicationWindow> for CosemDataType
impl From<CommunicationWindow> for CosemDataType
Source§fn from(cw: CommunicationWindow) -> Self
fn from(cw: CommunicationWindow) -> Self
Converts to this type from the input type.
Source§impl From<ConfirmationParameters> for CosemDataType
impl From<ConfirmationParameters> for CosemDataType
Source§fn from(cp: ConfirmationParameters) -> Self
fn from(cp: ConfirmationParameters) -> Self
Converts to this type from the input type.
Source§impl From<ContextName> for CosemDataType
impl From<ContextName> for CosemDataType
Source§fn from(cn: ContextName) -> Self
fn from(cn: ContextName) -> Self
Converts to this type from the input type.
Source§impl From<DateTime> for CosemDataType
impl From<DateTime> for CosemDataType
Source§impl From<DayProfile> for CosemDataType
impl From<DayProfile> for CosemDataType
Source§fn from(dp: DayProfile) -> Self
fn from(dp: DayProfile) -> Self
Converts to this type from the input type.
Source§impl From<DayProfileAction> for CosemDataType
impl From<DayProfileAction> for CosemDataType
Source§fn from(a: DayProfileAction) -> Self
fn from(a: DayProfileAction) -> Self
Converts to this type from the input type.
Source§impl From<EmergencyProfile> for CosemDataType
impl From<EmergencyProfile> for CosemDataType
Source§fn from(ep: EmergencyProfile) -> Self
fn from(ep: EmergencyProfile) -> Self
Converts to this type from the input type.
Source§impl From<ExecutedScript> for CosemDataType
impl From<ExecutedScript> for CosemDataType
Source§fn from(es: ExecutedScript) -> Self
fn from(es: ExecutedScript) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionTime> for CosemDataType
impl From<ExecutionTime> for CosemDataType
Source§fn from(et: ExecutionTime) -> Self
fn from(et: ExecutionTime) -> Self
Converts to this type from the input type.
Source§impl From<GsmAdjacentCell> for CosemDataType
impl From<GsmAdjacentCell> for CosemDataType
Source§fn from(cell: GsmAdjacentCell) -> Self
fn from(cell: GsmAdjacentCell) -> Self
Converts to this type from the input type.
Source§impl From<GsmServiceParameter> for CosemDataType
impl From<GsmServiceParameter> for CosemDataType
Source§fn from(p: GsmServiceParameter) -> Self
fn from(p: GsmServiceParameter) -> Self
Converts to this type from the input type.
Source§impl From<ImageToActivateInfo> for CosemDataType
impl From<ImageToActivateInfo> for CosemDataType
Source§fn from(info: ImageToActivateInfo) -> Self
fn from(info: ImageToActivateInfo) -> Self
Converts to this type from the input type.
Source§impl From<IpOption> for CosemDataType
impl From<IpOption> for CosemDataType
Source§impl From<LimiterAction> for CosemDataType
impl From<LimiterAction> for CosemDataType
Source§fn from(a: LimiterAction) -> Self
fn from(a: LimiterAction) -> Self
Converts to this type from the input type.
Source§impl From<MethodAccessItem> for CosemDataType
impl From<MethodAccessItem> for CosemDataType
Source§fn from(item: MethodAccessItem) -> Self
fn from(item: MethodAccessItem) -> Self
Converts to this type from the input type.
Source§impl From<NeighborDiscoverySetup> for CosemDataType
impl From<NeighborDiscoverySetup> for CosemDataType
Source§fn from(nd: NeighborDiscoverySetup) -> Self
fn from(nd: NeighborDiscoverySetup) -> Self
Converts to this type from the input type.
Source§impl From<ObjectDefinition> for CosemDataType
impl From<ObjectDefinition> for CosemDataType
Source§fn from(od: ObjectDefinition) -> Self
fn from(od: ObjectDefinition) -> Self
Converts to this type from the input type.
Source§impl From<ObjectListElement> for CosemDataType
impl From<ObjectListElement> for CosemDataType
Source§fn from(e: ObjectListElement) -> Self
fn from(e: ObjectListElement) -> Self
Converts to this type from the input type.
Source§impl From<ProtectionObject> for CosemDataType
impl From<ProtectionObject> for CosemDataType
Source§fn from(po: ProtectionObject) -> Self
fn from(po: ProtectionObject) -> Self
Converts to this type from the input type.
Source§impl From<PushProtectionParameter> for CosemDataType
impl From<PushProtectionParameter> for CosemDataType
Source§fn from(pp: PushProtectionParameter) -> Self
fn from(pp: PushProtectionParameter) -> Self
Converts to this type from the input type.
Source§impl From<QualityOfService> for CosemDataType
impl From<QualityOfService> for CosemDataType
Source§fn from(qos: QualityOfService) -> Self
fn from(qos: QualityOfService) -> Self
Converts to this type from the input type.
Source§impl From<RegisterActMask> for CosemDataType
impl From<RegisterActMask> for CosemDataType
Source§fn from(m: RegisterActMask) -> Self
fn from(m: RegisterActMask) -> Self
Converts to this type from the input type.
Source§impl From<SapAssignmentEntry> for CosemDataType
impl From<SapAssignmentEntry> for CosemDataType
Source§fn from(entry: SapAssignmentEntry) -> Self
fn from(entry: SapAssignmentEntry) -> Self
Converts to this type from the input type.
Source§impl From<ScalerUnit> for CosemDataType
impl From<ScalerUnit> for CosemDataType
Source§fn from(su: ScalerUnit) -> Self
fn from(su: ScalerUnit) -> Self
Converts to this type from the input type.
Source§impl From<ScheduleTableEntry> for CosemDataType
impl From<ScheduleTableEntry> for CosemDataType
Source§fn from(e: ScheduleTableEntry) -> Self
fn from(e: ScheduleTableEntry) -> Self
Converts to this type from the input type.
Source§impl From<Script> for CosemDataType
impl From<Script> for CosemDataType
Source§impl From<SeasonProfile> for CosemDataType
impl From<SeasonProfile> for CosemDataType
Source§fn from(sp: SeasonProfile) -> Self
fn from(sp: SeasonProfile) -> Self
Converts to this type from the input type.
Source§impl From<SendDestinationAndMethod> for CosemDataType
impl From<SendDestinationAndMethod> for CosemDataType
Source§fn from(s: SendDestinationAndMethod) -> Self
fn from(s: SendDestinationAndMethod) -> Self
Converts to this type from the input type.
Source§impl From<SpecialDayEntry> for CosemDataType
impl From<SpecialDayEntry> for CosemDataType
Source§fn from(e: SpecialDayEntry) -> Self
fn from(e: SpecialDayEntry) -> Self
Converts to this type from the input type.
Source§impl From<StatusMappingEntry> for CosemDataType
impl From<StatusMappingEntry> for CosemDataType
Source§fn from(e: StatusMappingEntry) -> Self
fn from(e: StatusMappingEntry) -> Self
Converts to this type from the input type.
Source§impl From<User> for CosemDataType
impl From<User> for CosemDataType
Source§impl From<ValueDefinition> for CosemDataType
impl From<ValueDefinition> for CosemDataType
Source§fn from(vd: ValueDefinition) -> Self
fn from(vd: ValueDefinition) -> Self
Converts to this type from the input type.
Source§impl From<WeekProfile> for CosemDataType
impl From<WeekProfile> for CosemDataType
Source§fn from(wp: WeekProfile) -> Self
fn from(wp: WeekProfile) -> Self
Converts to this type from the input type.
Source§impl From<XDLMSContextInfo> for CosemDataType
impl From<XDLMSContextInfo> for CosemDataType
Source§fn from(ctx: XDLMSContextInfo) -> Self
fn from(ctx: XDLMSContextInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CosemDataType
impl PartialEq for CosemDataType
Source§impl Serialize for CosemDataType
impl Serialize for CosemDataType
impl StructuralPartialEq for CosemDataType
Source§impl TryFrom<&CosemDataType> for DateTime
impl TryFrom<&CosemDataType> for DateTime
Source§impl TryFrom<&CosemDataType> for ScalerUnit
impl TryFrom<&CosemDataType> for ScalerUnit
Source§impl TryFrom<&CosemDataType> for CaptureObjectDefinition
impl TryFrom<&CosemDataType> for CaptureObjectDefinition
Source§impl TryFrom<&CosemDataType> for AccessRight
impl TryFrom<&CosemDataType> for AccessRight
Source§impl TryFrom<&CosemDataType> for AttributeAccessItem
impl TryFrom<&CosemDataType> for AttributeAccessItem
Source§impl TryFrom<&CosemDataType> for MethodAccessItem
impl TryFrom<&CosemDataType> for MethodAccessItem
Source§impl TryFrom<&CosemDataType> for ObjectListElement
impl TryFrom<&CosemDataType> for ObjectListElement
Source§impl TryFrom<&CosemDataType> for AssociatedPartnersId
impl TryFrom<&CosemDataType> for AssociatedPartnersId
Source§impl TryFrom<&CosemDataType> for ContextName
impl TryFrom<&CosemDataType> for ContextName
Source§impl TryFrom<&CosemDataType> for XDLMSContextInfo
impl TryFrom<&CosemDataType> for XDLMSContextInfo
Source§impl TryFrom<&CosemDataType> for ValueDefinition
impl TryFrom<&CosemDataType> for ValueDefinition
Source§impl TryFrom<&CosemDataType> for ActionItem
impl TryFrom<&CosemDataType> for ActionItem
Source§impl TryFrom<&CosemDataType> for ActionSet
impl TryFrom<&CosemDataType> for ActionSet
Source§impl TryFrom<&CosemDataType> for ActionSpecification
impl TryFrom<&CosemDataType> for ActionSpecification
Source§impl TryFrom<&CosemDataType> for Script
impl TryFrom<&CosemDataType> for Script
Source§impl TryFrom<&CosemDataType> for ScheduleTableEntry
impl TryFrom<&CosemDataType> for ScheduleTableEntry
Source§impl TryFrom<&CosemDataType> for SpecialDayEntry
impl TryFrom<&CosemDataType> for SpecialDayEntry
Source§impl TryFrom<&CosemDataType> for SeasonProfile
impl TryFrom<&CosemDataType> for SeasonProfile
Source§impl TryFrom<&CosemDataType> for WeekProfile
impl TryFrom<&CosemDataType> for WeekProfile
Source§impl TryFrom<&CosemDataType> for DayProfileAction
impl TryFrom<&CosemDataType> for DayProfileAction
Source§impl TryFrom<&CosemDataType> for DayProfile
impl TryFrom<&CosemDataType> for DayProfile
Source§impl TryFrom<&CosemDataType> for SendDestinationAndMethod
impl TryFrom<&CosemDataType> for SendDestinationAndMethod
Source§impl TryFrom<&CosemDataType> for CommunicationWindow
impl TryFrom<&CosemDataType> for CommunicationWindow
Source§impl TryFrom<&CosemDataType> for EmergencyProfile
impl TryFrom<&CosemDataType> for EmergencyProfile
Source§impl TryFrom<&CosemDataType> for LimiterAction
impl TryFrom<&CosemDataType> for LimiterAction
Source§impl TryFrom<&CosemDataType> for ObjectDefinition
impl TryFrom<&CosemDataType> for ObjectDefinition
Source§impl TryFrom<&CosemDataType> for RegisterActMask
impl TryFrom<&CosemDataType> for RegisterActMask
Source§impl TryFrom<&CosemDataType> for ImageToActivateInfo
impl TryFrom<&CosemDataType> for ImageToActivateInfo
Source§impl TryFrom<&CosemDataType> for ExecutedScript
impl TryFrom<&CosemDataType> for ExecutedScript
Source§impl TryFrom<&CosemDataType> for SapAssignmentEntry
impl TryFrom<&CosemDataType> for SapAssignmentEntry
Source§impl TryFrom<&CosemDataType> for GsmAdjacentCell
impl TryFrom<&CosemDataType> for GsmAdjacentCell
Source§impl TryFrom<&CosemDataType> for ProtectionObject
impl TryFrom<&CosemDataType> for ProtectionObject
Source§impl TryFrom<&CosemDataType> for IpOption
impl TryFrom<&CosemDataType> for IpOption
Source§impl TryFrom<&CosemDataType> for NeighborDiscoverySetup
impl TryFrom<&CosemDataType> for NeighborDiscoverySetup
Source§impl TryFrom<&CosemDataType> for User
impl TryFrom<&CosemDataType> for User
Source§impl TryFrom<&CosemDataType> for ExecutionTime
impl TryFrom<&CosemDataType> for ExecutionTime
Source§impl TryFrom<&CosemDataType> for GsmServiceParameter
impl TryFrom<&CosemDataType> for GsmServiceParameter
Source§impl TryFrom<&CosemDataType> for QualityOfService
impl TryFrom<&CosemDataType> for QualityOfService
Source§impl TryFrom<&CosemDataType> for CellInfo
impl TryFrom<&CosemDataType> for CellInfo
Source§impl TryFrom<&CosemDataType> for PushProtectionParameter
impl TryFrom<&CosemDataType> for PushProtectionParameter
Source§impl TryFrom<&CosemDataType> for ConfirmationParameters
impl TryFrom<&CosemDataType> for ConfirmationParameters
Source§impl TryFrom<&CosemDataType> for Certificate
impl TryFrom<&CosemDataType> for Certificate
Source§impl TryFrom<&CosemDataType> for StatusMappingEntry
impl TryFrom<&CosemDataType> for StatusMappingEntry
Auto Trait Implementations§
impl Freeze for CosemDataType
impl RefUnwindSafe for CosemDataType
impl Send for CosemDataType
impl Sync for CosemDataType
impl Unpin for CosemDataType
impl UnsafeUnpin for CosemDataType
impl UnwindSafe for CosemDataType
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