pub enum UartIoError<E> {
WouldBlock,
Interrupted,
Other(E),
}Expand description
UART transport error wrapper.
Variants§
WouldBlock
No bytes are currently available.
Interrupted
Operation was interrupted and may be retried.
Other(E)
Transport-specific error.
Trait Implementations§
Source§impl<E: Clone> Clone for UartIoError<E>
impl<E: Clone> Clone for UartIoError<E>
Source§fn clone(&self) -> UartIoError<E>
fn clone(&self) -> UartIoError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for UartIoError<E>
Source§impl<E: Debug> Debug for UartIoError<E>
impl<E: Debug> Debug for UartIoError<E>
impl<E: Eq> Eq for UartIoError<E>
Source§impl<E: PartialEq> PartialEq for UartIoError<E>
impl<E: PartialEq> PartialEq for UartIoError<E>
Source§fn eq(&self, other: &UartIoError<E>) -> bool
fn eq(&self, other: &UartIoError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E> StructuralPartialEq for UartIoError<E>
Auto Trait Implementations§
impl<E> Freeze for UartIoError<E>where
E: Freeze,
impl<E> RefUnwindSafe for UartIoError<E>where
E: RefUnwindSafe,
impl<E> Send for UartIoError<E>where
E: Send,
impl<E> Sync for UartIoError<E>where
E: Sync,
impl<E> Unpin for UartIoError<E>where
E: Unpin,
impl<E> UnsafeUnpin for UartIoError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for UartIoError<E>where
E: 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