Struct audio_streams_conformance_test::args::Args
source · pub struct Args {
pub stream_source: StreamSourceEnum,
pub channels: usize,
pub format: SampleFormat,
pub rate: u32,
pub buffer_frames: usize,
pub iterations: usize,
pub json: bool,
pub debug: bool,
}
Expand description
audio_streams_conformance_test
Fields§
§stream_source: StreamSourceEnum
the StreamSource to use for playback. (default: noop).
channels: usize
the channel numbers. (default: 2)
format: SampleFormat
format. Must be in [U8, S16_LE, S24_LE, S32_LE]. (default:S16_LE)
rate: u32
sample rate. (default: 48000)
buffer_frames: usize
block buffer size (frames) of each write. (default: 240).
iterations: usize
the iterations to fill in the audio buffer. default: 10)
json: bool
whether or not to print in json format
debug: bool
whether or not to print the debug messages
Trait Implementations§
source§impl FromArgs for Args
impl FromArgs for Args
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
impl Copy for Args
impl TopLevelCommand for Args
Auto Trait Implementations§
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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