Enum esp_idf_svc::hal::uart::UartEventPayload
source · #[non_exhaustive]pub enum UartEventPayload {
Data {
size: usize,
timeout: bool,
},
Break,
RxBufferFull,
RxFifoOverflow,
FrameError,
ParityError,
DataBreak,
PatternDetected,
Unknown,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Data
UART data was received and/or a timeout was triggered
Fields
§
size: usize
The number of bytes received
§
timeout: bool
Whether a timeout has occurred.
It is possible that bytes have been received
and this is set to true
in case the driver
processed both interrupts at the same time.
Break
Represents DATA event with timeout_flag set
RxBufferFull
RxFifoOverflow
FrameError
ParityError
DataBreak
PatternDetected
Unknown
Trait Implementations§
source§impl Clone for UartEventPayload
impl Clone for UartEventPayload
source§fn clone(&self) -> UartEventPayload
fn clone(&self) -> UartEventPayload
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UartEventPayload
impl Debug for UartEventPayload
impl Copy for UartEventPayload
Auto Trait Implementations§
impl Freeze for UartEventPayload
impl RefUnwindSafe for UartEventPayload
impl Send for UartEventPayload
impl Sync for UartEventPayload
impl Unpin for UartEventPayload
impl UnwindSafe for UartEventPayload
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)