pub struct FoundLine {
pub chip: PathBuf,
pub info: Info,
}
Expand description
The info for a line discovered in the system.
Identifies the chip hosting the line, and the line info.
The discovered line can be used to request the line:
let led0 = gpiocdev::find_named_line("LED0").unwrap();
let req = gpiocdev::Request::builder()
.with_found_line(&led0)
.as_output(Value::Active)
.request()?;
Fields§
§chip: PathBuf
The path to the chip containing the line.
info: Info
The info of the line.
Trait Implementations§
source§impl PartialEq for FoundLine
impl PartialEq for FoundLine
impl Eq for FoundLine
impl StructuralPartialEq for FoundLine
Auto Trait Implementations§
impl Freeze for FoundLine
impl RefUnwindSafe for FoundLine
impl Send for FoundLine
impl Sync for FoundLine
impl Unpin for FoundLine
impl UnwindSafe for FoundLine
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