#[non_exhaustive]pub struct Uac2Config {Show 13 fields
pub channel: Channel,
pub sync_type: Option<u32>,
pub hs_interval: Option<u8>,
pub mute_present: Option<bool>,
pub terminal_type: Option<u8>,
pub volume_present: Option<bool>,
pub volume_min: Option<i16>,
pub volume_max: Option<i16>,
pub volume_resolution: Option<i16>,
pub volume_name: Option<String>,
pub input_terminal_name: Option<String>,
pub input_terminal_channel_name: Option<String>,
pub output_terminal_name: Option<String>,
}Expand description
Audio device configuration.
Fields are optional and will be set to f_uac2 default values if not specified, see drivers/usb/gadget/function/u_uac2.h. Not all fields are supported by all kernels; permission denied errors may occur if unsupported fields are set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel: ChannelAudio channel configuration.
sync_type: Option<u32>Audio sync type (capture only)
hs_interval: Option<u8>Capture bInterval for HS/SS (1-4: fixed, 0: auto)
mute_present: Option<bool>If channel has mute
terminal_type: Option<u8>Terminal type
volume_present: Option<bool>If channel has volume
volume_min: Option<i16>Minimum volume (in 1/256 dB)
volume_max: Option<i16>Maximum volume (in 1/256 dB)
volume_resolution: Option<i16>Resolution of volume control (in 1/256 dB)
volume_name: Option<String>Name of the volume control function
input_terminal_name: Option<String>Name of the input terminal
input_terminal_channel_name: Option<String>Name of the input terminal channel
output_terminal_name: Option<String>Name of the output terminal
Trait Implementations§
Source§impl Clone for Uac2Config
impl Clone for Uac2Config
Source§fn clone(&self) -> Uac2Config
fn clone(&self) -> Uac2Config
Returns a duplicate 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 Uac2Config
impl Debug for Uac2Config
Source§impl Default for Uac2Config
impl Default for Uac2Config
Source§fn default() -> Uac2Config
fn default() -> Uac2Config
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Uac2Config
impl RefUnwindSafe for Uac2Config
impl Send for Uac2Config
impl Sync for Uac2Config
impl Unpin for Uac2Config
impl UnsafeUnpin for Uac2Config
impl UnwindSafe for Uac2Config
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