Enum embedded_update::device::SerialError
source · [−]pub enum SerialError<T, C> {
Transport(T),
Codec(C),
Other,
}
Expand description
Errors returned by Serial
Variants
Transport(T)
An error from the underlying transport layer
Codec(C)
An error during encode/decode of the status/command payload
Other
Other internal error.
Trait Implementations
Auto Trait Implementations
impl<T, C> RefUnwindSafe for SerialError<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for SerialError<T, C> where
C: Send,
T: Send,
impl<T, C> Sync for SerialError<T, C> where
C: Sync,
T: Sync,
impl<T, C> Unpin for SerialError<T, C> where
C: Unpin,
T: Unpin,
impl<T, C> UnwindSafe for SerialError<T, C> where
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more