pub enum Error<E> {
Io(E),
Nak(NakCode),
SecondaryFailure,
BadCrc,
OutOfBounds(u16),
IncompletePacket,
IndexWriteProtected(u8, u16),
CountExceedsBounds(u8, u16),
}Expand description
Errors a Primary client or Secondary server can return
Variants§
Io(E)
Nak(NakCode)
SecondaryFailure
BadCrc
OutOfBounds(u16)
IncompletePacket
IndexWriteProtected(u8, u16)
CountExceedsBounds(u8, u16)
Trait Implementations§
Source§impl<E> From<ReadExactError<E>> for Error<E>
impl<E> From<ReadExactError<E>> for Error<E>
Source§fn from(value: ReadExactError<E>) -> Self
fn from(value: ReadExactError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialOrd> PartialOrd for Error<E>
impl<E: PartialOrd> PartialOrd for Error<E>
impl<E: Copy> Copy for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<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