Struct wasefire_board_api::gpio::Config
source · #[repr(C)]pub struct Config {
pub input: InputConfig,
pub output: OutputConfig,
pub initial: bool,
/* private fields */
}
Available on crate feature
api-gpio
only.Fields§
§input: InputConfig
§output: OutputConfig
§initial: bool
Trait Implementations§
source§impl CheckedBitPattern for Config
impl CheckedBitPattern for Config
§type Bits = ConfigBits
type Bits = ConfigBits
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: &ConfigBits) -> bool
fn is_valid_bit_pattern(bits: &ConfigBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.impl Copy for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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