#[repr(C)]
pub struct SoapySDRArgInfo { pub key: *mut c_char, pub value: *mut c_char, pub name: *mut c_char, pub description: *mut c_char, pub units: *mut c_char, pub type_: SoapySDRArgInfoType, pub range: SoapySDRRange, pub numOptions: usize, pub options: *mut *mut c_char, pub optionNames: *mut *mut c_char, }
Expand description

! Definition for argument info

Fields§

§key: *mut c_char

! The key used to identify the argument (required)

§value: *mut c_char

The default value of the argument when not specified (required) Numbers should use standard floating point and integer formats. Boolean values should be represented as “true” and “false”.

§name: *mut c_char

! The displayable name of the argument (optional, use key if empty)

§description: *mut c_char

! A brief description about the argument (optional)

§units: *mut c_char

! The units of the argument: dB, Hz, etc (optional)

§type_: SoapySDRArgInfoType

! The data type of the argument (required)

§range: SoapySDRRange

The range of possible numeric values (optional) When specified, the argument should be restricted to this range. The range is only applicable to numeric argument types.

§numOptions: usize

! The size of the options set, or 0 when not used.

§options: *mut *mut c_char

A discrete list of possible values (optional) When specified, the argument should be restricted to this options set.

§optionNames: *mut *mut c_char

A discrete list of displayable names for the enumerated options (optional) When not specified, the option value itself can be used as a display name.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.