Skip to main content

deserialize_object

Function deserialize_object 

Source
pub fn deserialize_object(
    obj: &mut dyn InterfaceClass,
    data: &[u8],
) -> Result<(), BerError>
Expand description

Deserializes a COSEM object from BER data.

§Arguments

  • obj - An object implementing the InterfaceClass trait, into which the deserialized state is written.
  • data - The input BER bytes.

§Returns

  • Ok(()) - On success.
  • Err(BerError) - On a deserialization error.