#[repr(C)]pub struct ConfigureAbi {
pub version: u16,
pub direction: u8,
pub pull: u8,
pub drive_mode: u8,
pub initial_level: u8,
pub reserved: u16,
}Expand description
Requested configuration of the line.
direction:0input,1output.pull:0none,1pull up,2pull down.drive_mode:0push-pull,1open-drain. Outputs only.initial_level:0low,1high. Outputs only.
Fields§
§version: u16§direction: u8§pull: u8§drive_mode: u8§initial_level: u8§reserved: u16Trait Implementations§
Source§impl Clone for ConfigureAbi
impl Clone for ConfigureAbi
Source§fn clone(&self) -> ConfigureAbi
fn clone(&self) -> ConfigureAbi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigureAbi
impl Debug for ConfigureAbi
Source§impl Default for ConfigureAbi
impl Default for ConfigureAbi
Source§fn default() -> ConfigureAbi
fn default() -> ConfigureAbi
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConfigureAbi
impl PartialEq for ConfigureAbi
Source§fn eq(&self, other: &ConfigureAbi) -> bool
fn eq(&self, other: &ConfigureAbi) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConfigureAbi
impl Eq for ConfigureAbi
impl PlainData for ConfigureAbi
impl StructuralPartialEq for ConfigureAbi
Auto Trait Implementations§
impl Freeze for ConfigureAbi
impl RefUnwindSafe for ConfigureAbi
impl Send for ConfigureAbi
impl Sync for ConfigureAbi
impl Unpin for ConfigureAbi
impl UnsafeUnpin for ConfigureAbi
impl UnwindSafe for ConfigureAbi
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