#[non_exhaustive]pub struct Uac1Config {
pub channel: Channel,
pub mute_present: Option<bool>,
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 for UAC1.
Fields are optional and will be set to f_uac1 default values if not specified, see
drivers/usb/gadget/function/u_uac1.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.
mute_present: Option<bool>If channel has mute
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 Uac1Config
impl Clone for Uac1Config
Source§fn clone(&self) -> Uac1Config
fn clone(&self) -> Uac1Config
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 Uac1Config
impl Debug for Uac1Config
Source§impl Default for Uac1Config
impl Default for Uac1Config
Source§fn default() -> Uac1Config
fn default() -> Uac1Config
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Uac1Config
impl RefUnwindSafe for Uac1Config
impl Send for Uac1Config
impl Sync for Uac1Config
impl Unpin for Uac1Config
impl UnsafeUnpin for Uac1Config
impl UnwindSafe for Uac1Config
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