pub struct NoEvents;Expand description
Provides a no-op implementation of SerialEvents which can be used in situations that
do not require logging or otherwise doing anything in response to the events defined
as part of SerialEvents.
Trait Implementations§
impl Copy for NoEvents
Source§impl SerialEvents for NoEvents
impl SerialEvents for NoEvents
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 NoEvents
impl RefUnwindSafe for NoEvents
impl Send for NoEvents
impl Sync for NoEvents
impl Unpin for NoEvents
impl UnsafeUnpin for NoEvents
impl UnwindSafe for NoEvents
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