pub struct Ipv6Setup {
logical_name: ObisCode,
dl_reference: Vec<u8>,
address_config_mode: u8,
unicast_ipv6_addresses: Vec<Vec<u8>>,
multicast_ipv6_addresses: Vec<Vec<u8>>,
gateway_ipv6_addresses: Vec<Vec<u8>>,
primary_dns_address: Vec<u8>,
secondary_dns_address: Vec<u8>,
traffic_class: u8,
neighbor_discovery_setup: Vec<NeighborDiscoverySetup>,
}Expand description
IPv6 setup interface class (class_id = 48, version = 0) per IEC 62056-6-2
§4.9.3. Configures the IPv6 network layer.
Fields§
§logical_name: ObisCode§dl_reference: Vec<u8>§address_config_mode: u8§unicast_ipv6_addresses: Vec<Vec<u8>>§multicast_ipv6_addresses: Vec<Vec<u8>>§gateway_ipv6_addresses: Vec<Vec<u8>>§primary_dns_address: Vec<u8>§secondary_dns_address: Vec<u8>§traffic_class: u8§neighbor_discovery_setup: Vec<NeighborDiscoverySetup>Implementations§
Source§impl Ipv6Setup
impl Ipv6Setup
Sourcepub fn new(config: Ipv6SetupConfig) -> Self
pub fn new(config: Ipv6SetupConfig) -> Self
Builds a new Ipv6Setup from its configuration.
Sourcefn add_ipv6_address(
&mut self,
data: &CosemDataType,
) -> Result<CosemDataType, String>
fn add_ipv6_address( &mut self, data: &CosemDataType, ) -> Result<CosemDataType, String>
Method 1: add_IPv6_address — adds a unicast IPv6 address.
Sourcefn remove_ipv6_address(
&mut self,
data: &CosemDataType,
) -> Result<CosemDataType, String>
fn remove_ipv6_address( &mut self, data: &CosemDataType, ) -> Result<CosemDataType, String>
Method 2: remove_IPv6_address — removes a unicast IPv6 address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ipv6Setup
impl<'de> Deserialize<'de> for Ipv6Setup
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 InterfaceClass for Ipv6Setup
impl InterfaceClass for Ipv6Setup
Source§fn logical_name(&self) -> &ObisCode
fn logical_name(&self) -> &ObisCode
Returns the object’s logical name (OBIS code).
Source§fn attributes(&self) -> Vec<(u8, CosemDataType)>
fn attributes(&self) -> Vec<(u8, CosemDataType)>
Returns the class attributes as
(attribute_id, value) pairs.Source§fn serialize_ber(&self, buf: &mut Vec<u8>) -> Result<(), BerError>
fn serialize_ber(&self, buf: &mut Vec<u8>) -> Result<(), BerError>
Serializes the object into BER. Read more
Source§fn deserialize_ber(&mut self, data: &[u8]) -> Result<(), BerError>
fn deserialize_ber(&mut self, data: &[u8]) -> Result<(), BerError>
Deserializes the object from BER data. Read more
Source§fn invoke_method(
&mut self,
method_id: u8,
params: Option<CosemDataType>,
) -> Result<CosemDataType, String>
fn invoke_method( &mut self, method_id: u8, params: Option<CosemDataType>, ) -> Result<CosemDataType, String>
Invokes the object method with the given id. Read more
Source§fn set_attribute(
&mut self,
attribute_id: u8,
value: CosemDataType,
) -> Result<(), String>
fn set_attribute( &mut self, attribute_id: u8, value: CosemDataType, ) -> Result<(), String>
Writes the value of a writable attribute. The default implementation
rejects the write; classes with writable attributes override it. Read more
Auto Trait Implementations§
impl Freeze for Ipv6Setup
impl RefUnwindSafe for Ipv6Setup
impl Send for Ipv6Setup
impl Sync for Ipv6Setup
impl Unpin for Ipv6Setup
impl UnsafeUnpin for Ipv6Setup
impl UnwindSafe for Ipv6Setup
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