Enum stm32wb_hci::host::uart::Error
source · pub enum Error<VE> {
BadPacketType(u8),
BLE(Error<VE>),
}Expand description
Potential errors from reading or writing packets to the controller.
Must be specialized both for communication errors (E) and vendor-specific errors (VE).
Variants§
BadPacketType(u8)
The host expected the controller to begin a packet, but the next byte is not a valid packet type byte. Contains the value of the byte.
BLE(Error<VE>)
There was an error deserializing an event. Contains the underlying error.
Trait Implementations§
source§impl<VE: PartialEq> PartialEq<Error<VE>> for Error<VE>
impl<VE: PartialEq> PartialEq<Error<VE>> for Error<VE>
impl<VE: Copy> Copy for Error<VE>
impl<VE> StructuralPartialEq for Error<VE>
Auto Trait Implementations§
impl<VE> RefUnwindSafe for Error<VE>where VE: RefUnwindSafe,
impl<VE> Send for Error<VE>where VE: Send,
impl<VE> Sync for Error<VE>where VE: Sync,
impl<VE> Unpin for Error<VE>where VE: Unpin,
impl<VE> UnwindSafe for Error<VE>where VE: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more