#[non_exhaustive]pub enum DigitalIoCtrl {
LineSel,
LineMod,
LineInvert,
LineStat,
LineSrc,
UserOutSel,
UserOutVal,
Custom(CustomName),
}
Expand description
Describes digital I/O control options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LineSel
Select which line to control (PropertyType::EnumStr
)
LineMod
Select the line mode (PropertyType::EnumStr
)
LineInvert
Line I/O inversion (PropertyType::Bool
or PropertyType::EnumStr
)
LineStat
Query line status (PropertyType::EnumStr
)
LineSrc
Configure the line signal source (PropertyType::EnumStr
)
UserOutSel
Configure as user output selector (PropertyType::EnumStr
or PropertyType::Bool
)
UserOutVal
Configure as user output value (PropertyType::Float
or PropertyType::Bool
)
Custom(CustomName)
A custom command
Trait Implementations§
source§impl Clone for DigitalIoCtrl
impl Clone for DigitalIoCtrl
source§fn clone(&self) -> DigitalIoCtrl
fn clone(&self) -> DigitalIoCtrl
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 DigitalIoCtrl
impl Debug for DigitalIoCtrl
source§impl<'de> Deserialize<'de> for DigitalIoCtrl
impl<'de> Deserialize<'de> for DigitalIoCtrl
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 Documented for DigitalIoCtrl
impl Documented for DigitalIoCtrl
source§impl DocumentedVariants for DigitalIoCtrl
impl DocumentedVariants for DigitalIoCtrl
source§fn get_variant_docs(&self) -> &'static str
fn get_variant_docs(&self) -> &'static str
Get the documentation on this enum variant.
source§impl From<DigitalIoCtrl> for GenCamCtrl
impl From<DigitalIoCtrl> for GenCamCtrl
source§fn from(ctrl: DigitalIoCtrl) -> Self
fn from(ctrl: DigitalIoCtrl) -> Self
Converts to this type from the input type.
source§impl Hash for DigitalIoCtrl
impl Hash for DigitalIoCtrl
source§impl PartialEq for DigitalIoCtrl
impl PartialEq for DigitalIoCtrl
source§impl Serialize for DigitalIoCtrl
impl Serialize for DigitalIoCtrl
source§impl ToolTip for DigitalIoCtrl
impl ToolTip for DigitalIoCtrl
impl Copy for DigitalIoCtrl
impl Eq for DigitalIoCtrl
impl StructuralPartialEq for DigitalIoCtrl
Auto Trait Implementations§
impl Freeze for DigitalIoCtrl
impl RefUnwindSafe for DigitalIoCtrl
impl Send for DigitalIoCtrl
impl Sync for DigitalIoCtrl
impl Unpin for DigitalIoCtrl
impl UnwindSafe for DigitalIoCtrl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)