Trait tokio_gpiod::AsValues
source · pub trait AsValues {
// Required methods
fn bits(&self) -> u8;
fn get(&self, id: u8) -> Option<bool>;
// Provided methods
fn copy_into<T>(&self, other: &mut T)
where T: AsValuesMut { ... }
fn convert<T>(&self) -> T
where T: AsValuesMut + Default { ... }
}
Expand description
Something that can be used to get GPIO line values
Required Methods§
Provided Methods§
sourcefn copy_into<T>(&self, other: &mut T)where
T: AsValuesMut,
fn copy_into<T>(&self, other: &mut T)where
T: AsValuesMut,
Copy values to another variable
sourcefn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
Convert to another representation
Object Safety§
This trait is not object safe.