pub enum MacError<RadioError> {
Radio(RadioError),
Transmit(TxError<RadioError>),
QueueFull,
}Expand description
Variants§
Radio(RadioError)
The underlying umsh_hal::Radio driver returned an error during a receive or
channel-sense operation. The inner type is platform-specific (e.g., SPI fault on
embedded hardware, socket error on a UDP transport).
Transmit(TxError<RadioError>)
A transmit-phase error from the radio, such as channel-activity-detection (CAD)
exhaustion after [MAX_CAD_ATTEMPTS] retries. The frame was not sent.
QueueFull
An internal capacity invariant was violated: the coordinator needed to enqueue a
control frame (MAC ACK, forwarded packet) but the transmit queue was full.
Increase the TX const generic on Mac to give the queue more headroom.
Trait Implementations§
impl<RadioError: Eq> Eq for MacError<RadioError>
impl<RadioError> StructuralPartialEq for MacError<RadioError>
Auto Trait Implementations§
impl<RadioError> Freeze for MacError<RadioError>where
RadioError: Freeze,
impl<RadioError> RefUnwindSafe for MacError<RadioError>where
RadioError: RefUnwindSafe,
impl<RadioError> Send for MacError<RadioError>where
RadioError: Send,
impl<RadioError> Sync for MacError<RadioError>where
RadioError: Sync,
impl<RadioError> Unpin for MacError<RadioError>where
RadioError: Unpin,
impl<RadioError> UnwindSafe for MacError<RadioError>where
RadioError: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)