1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/// Errors returned by, or used within the crate #[derive(Clone, Debug, PartialEq, defmt::Format)] // #[derive(Clone, Debug, PartialEq, defmt::Format)] pub enum Error { /// Serial read error Read, /// Serial write error Write, /// Timed out while waiting for a response Timeout, /// Invalid response from module InvalidResponse, /// Command was aborted Aborted, /// Buffer overflow Overflow, /// Failed to parse received response ParseString, }