Struct gpiocdev_uapi::v2::LineConfig
source · [−]#[repr(C)]pub struct LineConfig {
pub flags: LineFlags,
pub num_attrs: u32,
pub attrs: LineConfigAttributes,
/* private fields */
}
Expand description
Configuration for a set of requested lines.
Fields
flags: LineFlags
Flags for the GPIO lines. This is the default for all requested lines but
may be overridden for particular lines using attrs
.
num_attrs: u32
The number of attributes active in attrs
.
attrs: LineConfigAttributes
The configuration attributes associated with the requested lines.
The number of active attributes in the array is specified by num_attrs
.
Implementations
sourceimpl LineConfig
impl LineConfig
sourcepub fn attr(&self, idx: usize) -> &LineConfigAttribute
pub fn attr(&self, idx: usize) -> &LineConfigAttribute
The nth attribute in the attrs
sourcepub fn attr_mut(&mut self, idx: usize) -> &mut LineConfigAttribute
pub fn attr_mut(&mut self, idx: usize) -> &mut LineConfigAttribute
The nth attribute in the attrs
Trait Implementations
sourceimpl Clone for LineConfig
impl Clone for LineConfig
sourcefn clone(&self) -> LineConfig
fn clone(&self) -> LineConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LineConfig
impl Debug for LineConfig
sourceimpl Default for LineConfig
impl Default for LineConfig
sourcefn default() -> LineConfig
fn default() -> LineConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LineConfig
impl Send for LineConfig
impl Sync for LineConfig
impl Unpin for LineConfig
impl UnwindSafe for LineConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more