pub struct DataNotification {
pub long_invoke_id_and_priority: u32,
pub date_time: Vec<u8>,
pub notification_body: CosemDataType,
}Expand description
A DATA-NOTIFICATION APDU: an unsolicited push carrying an arbitrary body.
Fields§
§long_invoke_id_and_priority: u32Long-Invoke-Id-And-Priority (32-bit): identifies this push invocation.
date_time: Vec<u8>Date-time octet-string; empty (zero length) when not transmitted.
notification_body: CosemDataTypeThe notification body (the push data).
Implementations§
Source§impl DataNotification
impl DataNotification
Sourcepub fn decode(bytes: &[u8]) -> Result<DataNotification, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<DataNotification, ServiceError>
Decodes the APDU.
Trait Implementations§
Source§impl Clone for DataNotification
impl Clone for DataNotification
Source§fn clone(&self) -> DataNotification
fn clone(&self) -> DataNotification
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 DataNotification
impl Debug for DataNotification
Source§impl PartialEq for DataNotification
impl PartialEq for DataNotification
impl StructuralPartialEq for DataNotification
Auto Trait Implementations§
impl Freeze for DataNotification
impl RefUnwindSafe for DataNotification
impl Send for DataNotification
impl Sync for DataNotification
impl Unpin for DataNotification
impl UnsafeUnpin for DataNotification
impl UnwindSafe for DataNotification
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