Enum embedded_hal::serial::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Overrun,
FrameFormat,
Parity,
Noise,
Other,
}
Expand description
Serial error kind
This represents a common set of serial operation errors. HAL implementations are free to define more specific or additional error types. However, by providing a mapping to these common serial errors, generic code can still react to them.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The peripheral receive buffer was overrun.
Received data does not conform to the peripheral configuration. Can be caused by a misconfigured device on either end of the serial line.
Parity check failed.
Serial line is too noisy to read valid data.
A different error occurred. The original error may contain more information.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more