pub enum InterfaceMode {
I2C,
SMBus,
}
Expand description
Two-Wire Interface Mode
Variants§
Trait Implementations§
source§impl Clone for InterfaceMode
impl Clone for InterfaceMode
source§fn clone(&self) -> InterfaceMode
fn clone(&self) -> InterfaceMode
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 PartialEq for InterfaceMode
impl PartialEq for InterfaceMode
source§fn eq(&self, other: &InterfaceMode) -> bool
fn eq(&self, other: &InterfaceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for InterfaceMode
impl Persist for InterfaceMode
source§fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
Load an instance of this Enum from the given reader
source§fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
Save an instance of this Enum to the given writer.
source§fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
Take the given reader and use it to load an instance of this type.
source§impl uDebug for InterfaceMode
impl uDebug for InterfaceMode
impl Copy for InterfaceMode
impl Eq for InterfaceMode
impl StructuralPartialEq for InterfaceMode
Auto Trait Implementations§
impl Freeze for InterfaceMode
impl RefUnwindSafe for InterfaceMode
impl Send for InterfaceMode
impl Sync for InterfaceMode
impl Unpin for InterfaceMode
impl UnwindSafe for InterfaceMode
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