pub enum ExclusiveDeviceError<BUS, CS> {
Spi(BUS),
Cs(CS),
}
Expand description
Error type for ExclusiveDevice
operations.
Variants§
Trait Implementations§
source§impl<BUS: Clone, CS: Clone> Clone for ExclusiveDeviceError<BUS, CS>
impl<BUS: Clone, CS: Clone> Clone for ExclusiveDeviceError<BUS, CS>
source§fn clone(&self) -> ExclusiveDeviceError<BUS, CS>
fn clone(&self) -> ExclusiveDeviceError<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 ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> Error for ExclusiveDeviceError<BUS, CS>
source§impl<BUS: PartialEq, CS: PartialEq> PartialEq for ExclusiveDeviceError<BUS, CS>
impl<BUS: PartialEq, CS: PartialEq> PartialEq for ExclusiveDeviceError<BUS, CS>
source§fn eq(&self, other: &ExclusiveDeviceError<BUS, CS>) -> bool
fn eq(&self, other: &ExclusiveDeviceError<BUS, CS>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<BUS: Copy, CS: Copy> Copy for ExclusiveDeviceError<BUS, CS>
impl<BUS: Eq, CS: Eq> Eq for ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> StructuralPartialEq for ExclusiveDeviceError<BUS, CS>
Auto Trait Implementations§
impl<BUS, CS> Freeze for ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> RefUnwindSafe for ExclusiveDeviceError<BUS, CS>where
BUS: RefUnwindSafe,
CS: RefUnwindSafe,
impl<BUS, CS> Send for ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> Sync for ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> Unpin for ExclusiveDeviceError<BUS, CS>
impl<BUS, CS> UnwindSafe for ExclusiveDeviceError<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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)