pub struct GpioConfig {
pub pin: u8,
pub topic: String,
pub trigger: TriggerType,
/* private fields */
}
Fields§
§pin: u8
§topic: String
§trigger: TriggerType
Implementations§
Source§impl GpioConfig
impl GpioConfig
pub fn new(pin: u8, topic: &str, trigger: TriggerType) -> Self
pub fn with_pullup(&self) -> bool
Trait Implementations§
Source§impl Debug for GpioConfig
impl Debug for GpioConfig
Source§impl<'de> Deserialize<'de> for GpioConfig
impl<'de> Deserialize<'de> for GpioConfig
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 GpioConfig
impl RefUnwindSafe for GpioConfig
impl Send for GpioConfig
impl Sync for GpioConfig
impl Unpin for GpioConfig
impl UnwindSafe for GpioConfig
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