pub struct ModeChangeError<T: Vs1003Peripherals> {
pub error: T::Error,
pub device: Vs1003<Errored, T>,
}Expand description
The error returned by Vs1003 APIs that change the typesate
Fields§
§error: T::ErrorThe actual error
device: Vs1003<Errored, T>The device, so that it can be reset
Trait Implementations§
Source§impl<T: Vs1003Peripherals> Debug for ModeChangeError<T>
impl<T: Vs1003Peripherals> Debug for ModeChangeError<T>
Source§impl<T: Vs1003Peripherals> Error for ModeChangeError<T>
impl<T: Vs1003Peripherals> Error for ModeChangeError<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> Freeze for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: Freeze,
<T as Vs1003Peripherals>::TSdi: Freeze,
<T as Vs1003Peripherals>::TRst: Freeze,
<T as Vs1003Peripherals>::TSci: Freeze,
<T as Vs1003Peripherals>::TDreq: Freeze,
impl<T> RefUnwindSafe for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: RefUnwindSafe,
<T as Vs1003Peripherals>::TSdi: RefUnwindSafe,
<T as Vs1003Peripherals>::TRst: RefUnwindSafe,
<T as Vs1003Peripherals>::TSci: RefUnwindSafe,
<T as Vs1003Peripherals>::TDreq: RefUnwindSafe,
impl<T> Send for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: Send,
<T as Vs1003Peripherals>::TSdi: Send,
<T as Vs1003Peripherals>::TRst: Send,
<T as Vs1003Peripherals>::TSci: Send,
<T as Vs1003Peripherals>::TDreq: Send,
impl<T> Sync for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: Sync,
<T as Vs1003Peripherals>::TSdi: Sync,
<T as Vs1003Peripherals>::TRst: Sync,
<T as Vs1003Peripherals>::TSci: Sync,
<T as Vs1003Peripherals>::TDreq: Sync,
impl<T> Unpin for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: Unpin,
<T as Vs1003Peripherals>::TSdi: Unpin,
<T as Vs1003Peripherals>::TRst: Unpin,
<T as Vs1003Peripherals>::TSci: Unpin,
<T as Vs1003Peripherals>::TDreq: Unpin,
impl<T> UnwindSafe for ModeChangeError<T>where
<T as Vs1003Peripherals>::Error: UnwindSafe,
<T as Vs1003Peripherals>::TSdi: UnwindSafe,
<T as Vs1003Peripherals>::TRst: UnwindSafe,
<T as Vs1003Peripherals>::TSci: UnwindSafe,
<T as Vs1003Peripherals>::TDreq: 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