pub enum Error<R, T, P> {
TxError(T),
RxError(R),
PinError(P),
UnexpectedResponse(ATResponse),
Fmt(Error),
Capacity(CapacityError),
}
Expand description
Error type for esp communication.
R
and T
are the error types of the serial module
Variants§
TxError(T)
Serial transmission errors
RxError(R)
Serial reception errors
PinError(P)
UnexpectedResponse(ATResponse)
Invalid or unexpected data received from the device
Fmt(Error)
Errors from the formating of messages
Capacity(CapacityError)
Error indicating an ArrayString wasn’t big enough
Trait Implementations§
Source§impl<R, T, ErrType, P> From<CapacityError<ErrType>> for Error<R, T, P>
impl<R, T, ErrType, P> From<CapacityError<ErrType>> for Error<R, T, P>
Source§fn from(other: CapacityError<ErrType>) -> Error<R, T, P>
fn from(other: CapacityError<ErrType>) -> Error<R, T, P>
Converts to this type from the input type.
Auto Trait Implementations§
impl<R, T, P> Freeze for Error<R, T, P>
impl<R, T, P> RefUnwindSafe for Error<R, T, P>
impl<R, T, P> Send for Error<R, T, P>
impl<R, T, P> Sync for Error<R, T, P>
impl<R, T, P> Unpin for Error<R, T, P>
impl<R, T, P> UnwindSafe for Error<R, T, P>
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