pub struct IoExpander {
pub name: String,
pub driver: IoExpanderDriver,
pub i2c_bus: Option<String>,
pub i2c_address: Option<u8>,
pub mux_strapping: Option<String>,
}
Expand description
Declaration of an IO expander. Its name, how to reach it, and which protocol driver to use.
Fields§
§name: String
Name used to refer to this IO expander.
driver: IoExpanderDriver
Identifier of the driver to use.
i2c_bus: Option<String>
I2C bus on which this IO expander sits (if the driver uses I2C).
i2c_address: Option<u8>
I2C address of this IO expander sits (if the driver uses I2C).
mux_strapping: Option<String>
Optional gpio strapping for MUXing the bus from the transport to this IO expander.
Trait Implementations§
Source§impl Clone for IoExpander
impl Clone for IoExpander
Source§fn clone(&self) -> IoExpander
fn clone(&self) -> IoExpander
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IoExpander
impl Debug for IoExpander
Source§impl<'de> Deserialize<'de> for IoExpander
impl<'de> Deserialize<'de> for IoExpander
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IoExpander
impl RefUnwindSafe for IoExpander
impl Send for IoExpander
impl Sync for IoExpander
impl Unpin for IoExpander
impl UnwindSafe for IoExpander
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