pub enum GenericError<TXE, RXE> {
WriteError(TXE),
ReadError(RXE),
ATError(String<U512>),
ATResponseTooLong(String<U512>),
}
Expand description
RXE
and TXE
will be the Error
type(s) of your serial port
implementation, as defined by embedded_hal::serial::Read<u8>::Error
and embedded_hal::serial::Write<u8>::Error
respectively.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<TXE, RXE> Freeze for GenericError<TXE, RXE>
impl<TXE, RXE> RefUnwindSafe for GenericError<TXE, RXE>where
TXE: RefUnwindSafe,
RXE: RefUnwindSafe,
impl<TXE, RXE> Send for GenericError<TXE, RXE>
impl<TXE, RXE> Sync for GenericError<TXE, RXE>
impl<TXE, RXE> Unpin for GenericError<TXE, RXE>
impl<TXE, RXE> UnwindSafe for GenericError<TXE, RXE>where
TXE: UnwindSafe,
RXE: 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