Enum gpiod_core::EdgeDetect
source · #[repr(u8)]pub enum EdgeDetect {
Disable = 0,
Rising = 1,
Falling = 2,
Both = 3,
}
Expand description
Edge detection setting for GPIO line
Variants§
Disable = 0
Detection disabled (default)
Rising = 1
Detect rising edge only
Falling = 2
Detect falling edge only
Both = 3
Detect both rising and falling edges
Trait Implementations§
source§impl AsRef<str> for EdgeDetect
impl AsRef<str> for EdgeDetect
source§impl Clone for EdgeDetect
impl Clone for EdgeDetect
source§fn clone(&self) -> EdgeDetect
fn clone(&self) -> EdgeDetect
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 Debug for EdgeDetect
impl Debug for EdgeDetect
source§impl Default for EdgeDetect
impl Default for EdgeDetect
source§impl Display for EdgeDetect
impl Display for EdgeDetect
source§impl FromStr for EdgeDetect
impl FromStr for EdgeDetect
source§impl Hash for EdgeDetect
impl Hash for EdgeDetect
source§impl PartialEq for EdgeDetect
impl PartialEq for EdgeDetect
source§fn eq(&self, other: &EdgeDetect) -> bool
fn eq(&self, other: &EdgeDetect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EdgeDetect
impl Eq for EdgeDetect
impl StructuralPartialEq for EdgeDetect
Auto Trait Implementations§
impl Freeze for EdgeDetect
impl RefUnwindSafe for EdgeDetect
impl Send for EdgeDetect
impl Sync for EdgeDetect
impl Unpin for EdgeDetect
impl UnwindSafe for EdgeDetect
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