pub struct Line { /* private fields */ }Expand description
A GPIO line opened on a Linux board, as an output or an input.
It implements the embedded-hal pin traits, so it goes under a
Switch, a Contact, or any driver
written against them, and Line::drive and Line::read work it directly.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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