pub enum SettingVal {
Direction(Direction),
Bias(Option<Bias>),
Drive(Drive),
EdgeDetection(Option<Edge>),
ActiveLow(bool),
DebouncePeriod(Duration),
EventClock(EventClock),
OutputValue(Value),
}Expand description
Line settings.
Variants§
Direction(Direction)
Line direction.
Bias(Option<Bias>)
Bias.
Drive(Drive)
Drive.
EdgeDetection(Option<Edge>)
Edge detection.
ActiveLow(bool)
Active-low setting.
DebouncePeriod(Duration)
Debounce period.
EventClock(EventClock)
Event clock type.
OutputValue(Value)
Output value.
Trait Implementations§
Source§impl Clone for SettingVal
impl Clone for SettingVal
Source§fn clone(&self) -> SettingVal
fn clone(&self) -> SettingVal
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 SettingVal
impl Debug for SettingVal
Source§impl Display for SettingVal
impl Display for SettingVal
Source§impl PartialEq for SettingVal
impl PartialEq for SettingVal
impl Copy for SettingVal
impl Eq for SettingVal
impl StructuralPartialEq for SettingVal
Auto Trait Implementations§
impl Freeze for SettingVal
impl RefUnwindSafe for SettingVal
impl Send for SettingVal
impl Sync for SettingVal
impl Unpin for SettingVal
impl UnwindSafe for SettingVal
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