pub enum PinIdentity {
PortA(u8),
PortB(u8),
PortC(u8),
PortD(u8),
PortE(u8),
PortF(u8),
}
Expand description
Identifies a particular pin as the source of an event at runtime.
Variants§
PortA(u8)
Port A, pin number (u8)
PortB(u8)
Port B, pin number (u8)
PortC(u8)
Port C, pin number (u8)
PortD(u8)
Port D, pin number (u8)
PortE(u8)
Port E, pin number (u8)
PortF(u8)
Port F, pin number (u8)
Trait Implementations§
source§impl Clone for PinIdentity
impl Clone for PinIdentity
source§fn clone(&self) -> PinIdentity
fn clone(&self) -> PinIdentity
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 Into<PinIdentity> for ProxyPin
impl Into<PinIdentity> for ProxyPin
source§fn into(self) -> PinIdentity
fn into(self) -> PinIdentity
Converts this type into the (usually inferred) input type.
source§impl PartialEq for PinIdentity
impl PartialEq for PinIdentity
source§fn eq(&self, other: &PinIdentity) -> bool
fn eq(&self, other: &PinIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for PinIdentity
impl Persist for PinIdentity
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 PinIdentity
impl uDebug for PinIdentity
impl Copy for PinIdentity
impl Eq for PinIdentity
impl StructuralPartialEq for PinIdentity
Auto Trait Implementations§
impl Freeze for PinIdentity
impl RefUnwindSafe for PinIdentity
impl Send for PinIdentity
impl Sync for PinIdentity
impl Unpin for PinIdentity
impl UnwindSafe for PinIdentity
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