pub struct EventNotificationRequest {
pub time: Option<Vec<u8>>,
pub attribute: AttributeDescriptor,
pub value: CosemDataType,
}Expand description
An EVENT-NOTIFICATION-REQUEST APDU: an unsolicited report that one attribute of one object has taken a new value.
Fields§
§time: Option<Vec<u8>>Optional event time, as a date-time octet-string.
attribute: AttributeDescriptorThe attribute that changed.
value: CosemDataTypeThe new attribute value.
Implementations§
Source§impl EventNotificationRequest
impl EventNotificationRequest
Sourcepub fn decode(bytes: &[u8]) -> Result<EventNotificationRequest, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<EventNotificationRequest, ServiceError>
Decodes the APDU.
Trait Implementations§
Source§impl Clone for EventNotificationRequest
impl Clone for EventNotificationRequest
Source§fn clone(&self) -> EventNotificationRequest
fn clone(&self) -> EventNotificationRequest
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 EventNotificationRequest
impl Debug for EventNotificationRequest
Source§impl PartialEq for EventNotificationRequest
impl PartialEq for EventNotificationRequest
impl StructuralPartialEq for EventNotificationRequest
Auto Trait Implementations§
impl Freeze for EventNotificationRequest
impl RefUnwindSafe for EventNotificationRequest
impl Send for EventNotificationRequest
impl Sync for EventNotificationRequest
impl Unpin for EventNotificationRequest
impl UnsafeUnpin for EventNotificationRequest
impl UnwindSafe for EventNotificationRequest
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