pub enum ExchangeError {
TxTimeout,
RxTimeout,
AckTimeout {
reply: u8,
},
AckStuck {
reply: u8,
},
}Expand description
Why one byte exchange failed.
Variants§
TxTimeout
The port never became ready to take the byte.
RxTimeout
The byte shifted out but no reply came back.
AckTimeout
The reply came back and the device never pulsed /ACK; the reply is
kept because an absent device answers 0xFF here.
Fields
§
reply: u8The byte received before the wait.
AckStuck
The device pulsed /ACK but held it asserted.
Fields
§
reply: u8The byte received before the wait.
Trait Implementations§
Source§impl Clone for ExchangeError
impl Clone for ExchangeError
Source§fn clone(&self) -> ExchangeError
fn clone(&self) -> ExchangeError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeError
impl Debug for ExchangeError
Source§impl PartialEq for ExchangeError
impl PartialEq for ExchangeError
impl Copy for ExchangeError
impl Eq for ExchangeError
impl StructuralPartialEq for ExchangeError
Auto Trait Implementations§
impl Freeze for ExchangeError
impl RefUnwindSafe for ExchangeError
impl Send for ExchangeError
impl Sync for ExchangeError
impl Unpin for ExchangeError
impl UnsafeUnpin for ExchangeError
impl UnwindSafe for ExchangeError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)