pub struct TimestampedNotification { /* private fields */ }Expand description
A notification with 16-bit timestamp.
Timestamps are disabled by default, and are turned on by the host by sending a SetRxTimestamp
command.
Implementations§
Source§impl TimestampedNotification
impl TimestampedNotification
Sourcepub fn new(notif: Notification, timestamp: u16) -> Self
pub fn new(notif: Notification, timestamp: u16) -> Self
timestamp must be in range 0..=0xEA5F.
pub fn encode<'a>( &self, buf: &'a mut NotificationBuf, ) -> Result<&'a [u8], Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimestampedNotification
impl RefUnwindSafe for TimestampedNotification
impl Send for TimestampedNotification
impl Sync for TimestampedNotification
impl Unpin for TimestampedNotification
impl UnwindSafe for TimestampedNotification
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