Struct Pin
pub(crate) struct Pin {
dir: PathBuf,
}Expand description
Exported pin.
Fields§
§dir: PathBufImplementations§
§impl Pin
impl Pin
pub(crate) fn export(
number: u32,
active_low: bool,
direction: Direction,
) -> Result<Self>
pub(crate) fn export( number: u32, active_low: bool, direction: Direction, ) -> Result<Self>
Exports the pin unless it is already exported, then sets its active level and direction.
pub(crate) fn set_edge_both(&self) -> Result<()>
pub(crate) fn set_edge_both(&self) -> Result<()>
Makes the value file report both edges.
pub(crate) fn open_value(&self, access: OFlags) -> Result<ValueFile>
fn write(&self, attribute: &str, value: &[u8]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
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