#[repr(C)]pub struct LineInfo {
pub offset: Offset,
pub flags: LineInfoFlags,
pub name: Name,
pub consumer: Name,
}
Expand description
Information about a certain GPIO line.
Fields§
§offset: Offset
The line offset on this GPIO device. This is the identifier used when requesting the line from the kernel.
flags: LineInfoFlags
The configuration flags for this line.
name: Name
The name of this GPIO line, such as the output pin of the line on the chip, a rail or a pin header name on a board, as specified by the GPIO chip.
May be empty.
consumer: Name
A functional name for the consumer of this GPIO line as set by whatever is using it.
Will be empty if there is no current user but may also be empty if the consumer doesn’t set a consumer name.
Trait Implementations§
impl Eq for LineInfo
impl StructuralPartialEq for LineInfo
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