pub enum ContextName {
Structure {
joint_iso_ctt: u8,
country: u8,
country_name: u16,
identified_organization: u8,
dlms_ua: u8,
application_context: u8,
context_id: u8,
},
OctetString(Vec<u8>),
}Expand description
context_name_type — CHOICE of structure or octet-string.
Used in Association LN attr 4.
Variants§
Structure
Encoded as a 7-element structure of OID arc components.
Fields
OctetString(Vec<u8>)
Encoded as raw octet-string (OBJECT IDENTIFIER).
Trait Implementations§
Source§impl Clone for ContextName
impl Clone for ContextName
Source§fn clone(&self) -> ContextName
fn clone(&self) -> ContextName
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 ContextName
impl Debug for ContextName
Source§impl<'de> Deserialize<'de> for ContextName
impl<'de> Deserialize<'de> for ContextName
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
impl Eq for ContextName
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 PartialEq for ContextName
impl PartialEq for ContextName
Source§impl Serialize for ContextName
impl Serialize for ContextName
impl StructuralPartialEq for ContextName
Source§impl TryFrom<&CosemDataType> for ContextName
impl TryFrom<&CosemDataType> for ContextName
Auto Trait Implementations§
impl Freeze for ContextName
impl RefUnwindSafe for ContextName
impl Send for ContextName
impl Sync for ContextName
impl Unpin for ContextName
impl UnsafeUnpin for ContextName
impl UnwindSafe for ContextName
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