Enum embedded_hal_bus::spi::DeviceError
source · pub enum DeviceError<BUS, CS> {
Spi(BUS),
Cs(CS),
}
Expand description
Error type for ExclusiveDevice
operations.
Variants§
Trait Implementations§
source§impl<BUS: Clone, CS: Clone> Clone for DeviceError<BUS, CS>
impl<BUS: Clone, CS: Clone> Clone for DeviceError<BUS, CS>
source§fn clone(&self) -> DeviceError<BUS, CS>
fn clone(&self) -> DeviceError<BUS, CS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<BUS, CS> Error for DeviceError<BUS, CS>
impl<BUS, CS> Error for DeviceError<BUS, CS>
impl<BUS: Copy, CS: Copy> Copy for DeviceError<BUS, CS>
impl<BUS: Eq, CS: Eq> Eq for DeviceError<BUS, CS>
impl<BUS, CS> StructuralPartialEq for DeviceError<BUS, CS>
Auto Trait Implementations§
impl<BUS, CS> Freeze for DeviceError<BUS, CS>
impl<BUS, CS> RefUnwindSafe for DeviceError<BUS, CS>where
BUS: RefUnwindSafe,
CS: RefUnwindSafe,
impl<BUS, CS> Send for DeviceError<BUS, CS>
impl<BUS, CS> Sync for DeviceError<BUS, CS>
impl<BUS, CS> Unpin for DeviceError<BUS, CS>
impl<BUS, CS> UnwindSafe for DeviceError<BUS, CS>where
BUS: UnwindSafe,
CS: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)