pub struct AssociationLnConfig {
pub logical_name: ObisCode,
pub version: AssociationLnVersion,
pub object_list: Vec<ObjectListElement>,
pub associated_partners_id: AssociatedPartnersId,
pub application_context_name: ContextName,
pub xdlms_context_info: XDLMSContextInfo,
pub authentication_mechanism: AuthenticationMechanism,
pub secret: Vec<u8>,
pub association_status: u8,
pub security_setup_reference: ObisCode,
pub user_list: Vec<User>,
pub current_user: Option<User>,
}Expand description
Configuration structure used to build an Association LN object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
version: AssociationLnVersionThe implemented class version (0, 1 or 2); selects the attribute set.
object_list: Vec<ObjectListElement>Attribute 2: list of the COSEM objects visible within the association.
associated_partners_id: AssociatedPartnersIdAttribute 3: associated_partners_id structure { client SAP, server SAP }.
application_context_name: ContextNameAttribute 4: application context name (naming and ciphering in use).
xdlms_context_info: XDLMSContextInfoAttribute 5: xDLMS_context_info structure (conformance, PDU sizes, …).
authentication_mechanism: AuthenticationMechanismAttribute 6: the authentication mechanism negotiated for the association.
secret: Vec<u8>Attribute 7: the LLS/HLS secret (password or shared key).
association_status: u8Attribute 8: association status (non-associated / association-pending / associated).
security_setup_reference: ObisCodeAttribute 9 (versions ≥ 1): OBIS reference to the Security Setup object (class 64).
user_list: Vec<User>Attribute 10 (version 2): array of user { id, name } entries.
current_user: Option<User>Attribute 11 (version 2): the currently associated user (structure).
Trait Implementations§
Source§impl Clone for AssociationLnConfig
impl Clone for AssociationLnConfig
Source§fn clone(&self) -> AssociationLnConfig
fn clone(&self) -> AssociationLnConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more