Enum wasefire_board_api::gpio::InputConfig
source · #[repr(u8)]pub enum InputConfig {
Disabled = 0,
Floating = 1,
PullDown = 2,
PullUp = 3,
}
Available on crate feature
api-gpio
only.Variants§
Trait Implementations§
source§impl CheckedBitPattern for InputConfig
impl CheckedBitPattern for InputConfig
§type Bits = u8
type Bits = u8
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl Clone for InputConfig
impl Clone for InputConfig
source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
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 InputConfig
impl Debug for InputConfig
impl Copy for InputConfig
Auto Trait Implementations§
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnwindSafe for InputConfig
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