#[non_exhaustive]pub enum SerialError {
Overrun,
FrameFormat,
Parity,
Noise,
Impl(ImplError),
}
Expand description
A Serial specific error.
This error type contains errors specific to Serial peripherals. Also it has an Impl
kind to pass
through implementation specific errors occurring while trying to use a Serial peripheral.
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.
Overrun
The peripheral receive buffer was overrun.
FrameFormat
Received data does not conform to the peripheral configuration. Can be caused by a misconfigured device on either end of the serial line.
Parity
Parity check failed.
Noise
Serial line is too noisy to read valid data.
Impl(ImplError)
Implementation specific error (shared across all peripheral specific error kinds).
Trait Implementations§
Source§impl Clone for SerialError
impl Clone for SerialError
Source§fn clone(&self) -> SerialError
fn clone(&self) -> SerialError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SerialError
impl RefUnwindSafe for SerialError
impl Send for SerialError
impl Sync for SerialError
impl Unpin for SerialError
impl UnwindSafe for SerialError
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