pub struct SerialEventsWrapper {
pub metrics: Arc<SerialDeviceMetrics>,
pub buffer_ready_event_fd: Option<EventFdTrigger>,
}
Fields§
§metrics: Arc<SerialDeviceMetrics>
§buffer_ready_event_fd: Option<EventFdTrigger>
Trait Implementations§
Source§impl SerialEvents for SerialEventsWrapper
impl SerialEvents for SerialEventsWrapper
Source§fn buffer_read(&self)
fn buffer_read(&self)
The driver reads data from the input buffer.
Source§fn tx_lost_byte(&self)
fn tx_lost_byte(&self)
An error occurred while writing a byte to serial output resulting in a lost byte.
Source§fn in_buffer_empty(&self)
fn in_buffer_empty(&self)
This event can be used by the consumer to re-enable events coming from
the serial input.
Auto Trait Implementations§
impl Freeze for SerialEventsWrapper
impl RefUnwindSafe for SerialEventsWrapper
impl Send for SerialEventsWrapper
impl Sync for SerialEventsWrapper
impl Unpin for SerialEventsWrapper
impl UnwindSafe for SerialEventsWrapper
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