pub struct LineInfo {
pub direction: Direction,
pub active: Active,
pub edge: EdgeDetect,
pub used: bool,
pub bias: Bias,
pub drive: Drive,
pub name: String,
pub consumer: String,
}Expand description
The information of a specific GPIO line
Fields§
§direction: DirectionGPIO line direction
active: ActiveGPIO line active state
edge: EdgeDetectGPIO line edge detection
used: boolGPIO line usage status
true means that kernel uses this line for some purposes.
bias: BiasGPIO line input bias
drive: DriveGPIO line output drive mode
name: StringGPIO line name
consumer: StringGPIO line consumer name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnwindSafe for LineInfo
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