pub enum InterruptMode {
Disabled,
BothEdges,
RisingEdge,
FallingEdge,
LowLevel,
}
Expand description
Interrupt generation mode for a pin
Variants§
Disabled
Do not generate interrupts
BothEdges
Interrupt on both rising and falling edges
RisingEdge
Interrupt on rising edge
FallingEdge
Interrupt on falling edge
LowLevel
Interrupt while input is low
Trait Implementations§
source§impl Clone for InterruptMode
impl Clone for InterruptMode
source§fn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
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 InterruptMode
impl PartialEq for InterruptMode
source§fn eq(&self, other: &InterruptMode) -> bool
fn eq(&self, other: &InterruptMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Persist for InterruptMode
impl Persist for InterruptMode
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 InterruptMode
impl uDebug for InterruptMode
impl Copy for InterruptMode
impl Eq for InterruptMode
impl StructuralPartialEq for InterruptMode
Auto Trait Implementations§
impl Freeze for InterruptMode
impl RefUnwindSafe for InterruptMode
impl Send for InterruptMode
impl Sync for InterruptMode
impl Unpin for InterruptMode
impl UnwindSafe for InterruptMode
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