Enum async_std_gpiod::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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EdgeDetect
impl Debug for EdgeDetect
sourceimpl Default for EdgeDetect
impl Default for EdgeDetect
sourcefn default() -> EdgeDetect
fn default() -> EdgeDetect
Returns the “default value” for a type. Read more
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
This method tests for self and other values to be equal, and is used
by ==. Read more
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