Struct tokio_gpiod::LineInfo
source · 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: Direction
GPIO line direction
active: Active
GPIO line active state
edge: EdgeDetect
GPIO line edge detection
used: bool
GPIO line usage status
true
means that kernel uses this line for some purposes.
bias: Bias
GPIO line input bias
drive: Drive
GPIO line output drive mode
name: String
GPIO line name
consumer: String
GPIO 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