pub enum TwiIdentity {
Twi0master,
Twi0slave,
Twi1master,
Twi1slave,
}
Expand description
Identifies a particular source of TWI events, i.e. a particular hardware TWI device, at runtime.
Variants§
Trait Implementations§
source§impl Clone for TwiIdentity
impl Clone for TwiIdentity
source§fn clone(&self) -> TwiIdentity
fn clone(&self) -> TwiIdentity
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 TwiIdentity
impl PartialEq for TwiIdentity
source§fn eq(&self, other: &TwiIdentity) -> bool
fn eq(&self, other: &TwiIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for TwiIdentity
impl Persist for TwiIdentity
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 TwiIdentity
impl uDebug for TwiIdentity
impl Copy for TwiIdentity
impl Eq for TwiIdentity
impl StructuralPartialEq for TwiIdentity
Auto Trait Implementations§
impl Freeze for TwiIdentity
impl RefUnwindSafe for TwiIdentity
impl Send for TwiIdentity
impl Sync for TwiIdentity
impl Unpin for TwiIdentity
impl UnwindSafe for TwiIdentity
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