indigo_property

Struct indigo_property 

Source
#[repr(C)]
pub struct indigo_property {
Show 16 fields pub device: [c_char; 128], pub name: [c_char; 128], pub group: [c_char; 128], pub label: [c_char; 512], pub hints: [c_char; 512], pub state: indigo_property_state, pub type_: indigo_property_type, pub perm: indigo_property_perm, pub rule: indigo_rule, pub access_token: indigo_token, pub version: c_short, pub hidden: bool, pub defined: bool, pub allocated_count: c_int, pub count: c_int, pub items: __IncompleteArrayField<indigo_item>,
}
Expand description

Property definition.

Fields§

§device: [c_char; 128]

< system wide unique device name

§name: [c_char; 128]

< device wide unique property name

§group: [c_char; 128]

< property group in human readable form (presented as a tab or a subtree in GUI

§label: [c_char; 512]

< property description in human readable form

§hints: [c_char; 512]

< property GUI hints

§state: indigo_property_state

< property state

§type_: indigo_property_type

< property type

§perm: indigo_property_perm

< property access permission

§rule: indigo_rule

< switch behaviour rule (for switch properties)

§access_token: indigo_token

< allow change request on locked device

§version: c_short

< property version INDIGO_VERSION_NONE, INDIGO_VERSION_LEGACY or INDIGO_VERSION_2_0

§hidden: bool

< property is hidden/unused by driver (for optional properties)

§defined: bool

< property is defined

§allocated_count: c_int

< number of allocated property items

§count: c_int

< number of used property items

§items: __IncompleteArrayField<indigo_item>

< property items

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.