pub enum Interrupt {
Off,
RisingEdge,
FallingEgdge,
BothEdges,
}Expand description
Interrupt configuration for a GPIO pin.
Variants§
Off
Disable interrupts for the pin.
RisingEdge
Interrupt on rising edge.
FallingEgdge
Interrupt on falling edge. (Typo in original name preserved.)
BothEdges
Interrupt on both edges.
Auto Trait Implementations§
impl Freeze for Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnwindSafe for Interrupt
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