Struct gpiod_core::Internal
source · pub struct Internal<T>(/* private fields */);
Expand description
Wrapper to hide internals
Implementations§
source§impl Internal<ValuesInfo>
impl Internal<ValuesInfo>
pub fn get_values<T: AsValuesMut>( &self, fd: RawFd, values: &mut T ) -> Result<()>
pub fn set_values<T: AsValues>(&self, fd: RawFd, values: T) -> Result<()>
source§impl Internal<ChipInfo>
impl Internal<ChipInfo>
pub fn from_fd(fd: RawFd) -> Result<Self>
sourcepub fn line_info(&self, fd: RawFd, line: LineId) -> Result<LineInfo>
pub fn line_info(&self, fd: RawFd, line: LineId) -> Result<LineInfo>
Request the info of a specific GPIO line.
sourcepub fn request_lines<Direction: DirectionType>(
&self,
fd: RawFd,
options: Options<Direction, impl AsRef<[LineId]>, impl AsRef<str>>
) -> Result<(Internal<ValuesInfo>, RawFd)>
pub fn request_lines<Direction: DirectionType>( &self, fd: RawFd, options: Options<Direction, impl AsRef<[LineId]>, impl AsRef<str>> ) -> Result<(Internal<ValuesInfo>, RawFd)>
Request the GPIO chip to configure the lines passed as argument as outputs
Calling this operation is a precondition to being able to set the state of the GPIO lines. All the lines passed in one request must share the output mode and the active state.
Trait Implementations§
impl<T: Copy> Copy for Internal<T>
Auto Trait Implementations§
impl<T> Freeze for Internal<T>where
T: Freeze,
impl<T> RefUnwindSafe for Internal<T>where
T: RefUnwindSafe,
impl<T> Send for Internal<T>where
T: Send,
impl<T> Sync for Internal<T>where
T: Sync,
impl<T> Unpin for Internal<T>where
T: Unpin,
impl<T> UnwindSafe for Internal<T>where
T: UnwindSafe,
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