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: PartialEq, CS: PartialEq> PartialEq<ExclusiveDeviceError<BUS, CS>> for ExclusiveDeviceError<BUS, CS>
impl<BUS: PartialEq, CS: PartialEq> PartialEq<ExclusiveDeviceError<BUS, CS>> for ExclusiveDeviceError<BUS, CS>
source§fn eq(&self, other: &ExclusiveDeviceError<BUS, CS>) -> bool
fn eq(&self, other: &ExclusiveDeviceError<BUS, CS>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.