pub enum Error<E> {
Read(E),
Write(E),
InvalidFrame,
UnknownReportType(u8),
InvalidReport,
InvalidAck,
BufferOverflow,
}Expand description
Error types for LD2410 driver operations
Variants§
Read(E)
UART read error
Write(E)
UART write error
InvalidFrame
Malformed frame structure (bad header/footer/length/markers)
UnknownReportType(u8)
Unsupported/unknown report type
InvalidReport
Report content is too short / inconsistent
InvalidAck
ACK content is too short / inconsistent
BufferOverflow
Buffer too small for received frame
Trait Implementations§
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: 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)