pub struct Description {
    pub id: u32,
    pub typ: Type,
    pub name: String,
    pub minimum: i64,
    pub maximum: i64,
    pub step: u64,
    pub default: i64,
    pub flags: Flags,
    pub items: Option<Vec<(u32, MenuItem)>>,
}
Expand description

Device control description

Fields

id: u32

Control identifier, set by the the application

typ: Type

Type of control

name: String

Name of the control, intended for the user

minimum: i64

Minimum value, inclusive

maximum: i64

Maximum value, inclusive

step: u64

Step size, always positive

default: i64

Default value

flags: Flags

Control flags

items: Option<Vec<(u32, MenuItem)>>

Items for menu controls (only valid if typ is a menu type)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.