pub struct I2cConfiguration {
pub name: String,
pub address: Option<u8>,
pub bits_per_sec: Option<u32>,
pub alias_of: Option<String>,
}
Expand description
Configuration of a particular I2C bus.
Fields§
§name: String
The user-visible name of the I2C bus.
address: Option<u8>
I2C address of the “default” device on the bus.
bits_per_sec: Option<u32>
Data communication rate in bits/second.
alias_of: Option<String>
Name of the I2C bus as defined by the transport.
Trait Implementations§
Source§impl Clone for I2cConfiguration
impl Clone for I2cConfiguration
Source§fn clone(&self) -> I2cConfiguration
fn clone(&self) -> I2cConfiguration
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 I2cConfiguration
impl Debug for I2cConfiguration
Source§impl Default for I2cConfiguration
impl Default for I2cConfiguration
Source§fn default() -> I2cConfiguration
fn default() -> I2cConfiguration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for I2cConfiguration
impl<'de> Deserialize<'de> for I2cConfiguration
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 I2cConfiguration
impl RefUnwindSafe for I2cConfiguration
impl Send for I2cConfiguration
impl Sync for I2cConfiguration
impl Unpin for I2cConfiguration
impl UnwindSafe for I2cConfiguration
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