1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use crate::packet::Packet; use ieee802154::mac::DecodeError; /// Basic MAC errors #[derive(Debug, Clone, PartialEq)] pub enum CoreError<E> { /// Buffer full BufferFull(Packet), /// Transmission buffer full TransmitPending, /// Transmission failed TransmitFailed(Packet), /// Decoding error DecodeError(DecodeError), /// Wrapper for unhandled / underlying radio errors Radio(E), Timeout, }