Enum wasefire_board_api::gpio::OutputConfig
source · #[repr(u8)]pub enum OutputConfig {
Disabled = 0,
OpenDrain = 1,
OpenSource = 2,
PushPull = 3,
}
Available on crate feature
api-gpio
only.Variants§
Trait Implementations§
source§impl CheckedBitPattern for OutputConfig
impl CheckedBitPattern for OutputConfig
§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 OutputConfig
impl Clone for OutputConfig
source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
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 OutputConfig
impl Debug for OutputConfig
impl Copy for OutputConfig
Auto Trait Implementations§
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnwindSafe for OutputConfig
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