Enum gpiod_core::EdgeDetect
source · [−]#[repr(u8)]
pub enum EdgeDetect {
Disable,
Rising,
Falling,
Both,
}Expand description
Edge detection setting for GPIO line
Variants
Disable
Detection disabled (default)
Rising
Detect rising edge only
Falling
Detect falling edge only
Both
Detect both rising and falling edges
Trait Implementations
sourceimpl AsRef<str> for EdgeDetect
impl AsRef<str> for EdgeDetect
sourceimpl Clone for EdgeDetect
impl Clone for EdgeDetect
sourcefn clone(&self) -> EdgeDetect
fn clone(&self) -> EdgeDetect
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EdgeDetect
impl Debug for EdgeDetect
sourceimpl Default for EdgeDetect
impl Default for EdgeDetect
sourceimpl Display for EdgeDetect
impl Display for EdgeDetect
sourceimpl FromStr for EdgeDetect
impl FromStr for EdgeDetect
sourceimpl Hash for EdgeDetect
impl Hash for EdgeDetect
sourceimpl PartialEq<EdgeDetect> for EdgeDetect
impl PartialEq<EdgeDetect> for EdgeDetect
sourcefn eq(&self, other: &EdgeDetect) -> bool
fn eq(&self, other: &EdgeDetect) -> bool
impl Copy for EdgeDetect
impl Eq for EdgeDetect
impl StructuralEq for EdgeDetect
impl StructuralPartialEq for EdgeDetect
Auto Trait Implementations
impl RefUnwindSafe for EdgeDetect
impl Send for EdgeDetect
impl Sync for EdgeDetect
impl Unpin for EdgeDetect
impl UnwindSafe for EdgeDetect
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