Enum gpiocdev::line::EdgeDetection
source · [−]pub enum EdgeDetection {
RisingEdge,
FallingEdge,
BothEdges,
}
Expand description
The edge detection options for an input line.
Variants
RisingEdge
Edge detection is only enabled on rising edges.
A rising edge means a transition from an inactive state to an active state.
FallingEdge
Edge detection is only enabled on falling edges.
A falling edge means a transition from an active state to an inactive state.
BothEdges
Edge detection is enabled on both rising and falling edges.
Trait Implementations
sourceimpl Clone for EdgeDetection
impl Clone for EdgeDetection
sourcefn clone(&self) -> EdgeDetection
fn clone(&self) -> EdgeDetection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EdgeDetection
impl Debug for EdgeDetection
sourceimpl PartialEq<EdgeDetection> for EdgeDetection
impl PartialEq<EdgeDetection> for EdgeDetection
sourcefn eq(&self, other: &EdgeDetection) -> bool
fn eq(&self, other: &EdgeDetection) -> bool
sourceimpl TryFrom<LineFlags> for EdgeDetection
impl TryFrom<LineFlags> for EdgeDetection
impl Copy for EdgeDetection
impl Eq for EdgeDetection
impl StructuralEq for EdgeDetection
impl StructuralPartialEq for EdgeDetection
Auto Trait Implementations
impl RefUnwindSafe for EdgeDetection
impl Send for EdgeDetection
impl Sync for EdgeDetection
impl Unpin for EdgeDetection
impl UnwindSafe for EdgeDetection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more