pmsa003i/
error.rs

1#[cfg_attr(feature = "defmt", derive(defmt::Format))]
2#[derive(Debug)]
3pub enum Error<E> {
4    /// Failed I2C communication
5    I2C(E),
6    /// Failed checksum validation
7    BadChecksum,
8    /// Couldn't find the "magic bytes" that signal the start of a data frame
9    BadMagic,
10}