pub enum Error<E: Debug> {
BadAck,
BadResponseFrame,
Syntax,
CrcError,
BufTooSmall,
TimeoutAck,
TimeoutResponse,
InterfaceError(E),
}
Expand description
Pn532 Error
Variants§
BadAck
Could not parse ACK frame
BadResponseFrame
Could not parse response frame
Syntax
Received a syntax error frame
CrcError
CRC for either the length or the data is wrong
BufTooSmall
The provided response_len
was too low
TimeoutAck
Did not receive an ACK frame in time
TimeoutResponse
Did not receive a response frame in time
InterfaceError(E)
Interface specific Error
Trait Implementations§
source§impl<E: PartialEq + Debug> PartialEq for Error<E>
impl<E: PartialEq + Debug> PartialEq for Error<E>
impl<E: Copy + Debug> Copy for Error<E>
impl<E: Eq + Debug> Eq for Error<E>
impl<E: Debug> 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