Struct d1_config::I2cPuppetConfiguration
source · pub struct I2cPuppetConfiguration {
pub enabled: bool,
pub interrupt_pin: Option<InterruptPin>,
pub poll_interval: Duration,
}
Fields§
§enabled: bool
§interrupt_pin: Option<InterruptPin>
§poll_interval: Duration
Implementations§
source§impl I2cPuppetConfiguration
impl I2cPuppetConfiguration
pub(crate) const fn default_poll_interval() -> Duration
Trait Implementations§
source§impl Debug for I2cPuppetConfiguration
impl Debug for I2cPuppetConfiguration
source§impl<'de> Deserialize<'de> for I2cPuppetConfiguration
impl<'de> Deserialize<'de> for I2cPuppetConfiguration
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 I2cPuppetConfiguration
impl RefUnwindSafe for I2cPuppetConfiguration
impl Send for I2cPuppetConfiguration
impl Sync for I2cPuppetConfiguration
impl Unpin for I2cPuppetConfiguration
impl UnwindSafe for I2cPuppetConfiguration
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