pub enum OutputWiring {
Gpio {
chip: String,
line: u32,
active_low: bool,
},
Print {
label: String,
},
}Expand description
The output a profile drives, as a wiring file names it.
{ "gpio": "/dev/gpiochip0", "line": 17, "active_low": true }
{ "print": "heat lamp" }Variants§
Gpio
A GPIO line, such as the input of a relay board.
Fields
A line of text each time the output switches, for trying a profile with nothing wired.
Trait Implementations§
Source§impl Clone for OutputWiring
impl Clone for OutputWiring
Source§fn clone(&self) -> OutputWiring
fn clone(&self) -> OutputWiring
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputWiring
impl Debug for OutputWiring
Source§impl<'de> Deserialize<'de> for OutputWiring
impl<'de> Deserialize<'de> for OutputWiring
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
Source§impl PartialEq for OutputWiring
impl PartialEq for OutputWiring
Source§impl Serialize for OutputWiring
impl Serialize for OutputWiring
impl StructuralPartialEq for OutputWiring
Auto Trait Implementations§
impl Freeze for OutputWiring
impl RefUnwindSafe for OutputWiring
impl Send for OutputWiring
impl Sync for OutputWiring
impl Unpin for OutputWiring
impl UnsafeUnpin for OutputWiring
impl UnwindSafe for OutputWiring
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