pub struct Audio { /* private fields */ }Expand description
QEMU -audio [driver=]driver[,model=value][,prop[=value][,...]].
This shortcut configures a default host audio backend and optionally the
guest audio device model. Additional backend properties are emitted after
the canonical driver and model fields.
Implementations§
Source§impl Audio
impl Audio
Sourcepub fn builder() -> AudioBuilder
pub fn builder() -> AudioBuilder
Create an instance of Audio using the builder syntax
Source§impl Audio
impl Audio
Sourcepub fn new(driver: impl Into<String>) -> Self
pub fn new(driver: impl Into<String>) -> Self
Creates an audio configuration for the given backend driver.
Sourcepub fn model(&mut self, model: impl Into<String>) -> &mut Self
pub fn model(&mut self, model: impl Into<String>) -> &mut Self
Sets the guest audio device model used by the -audio shortcut.
Trait Implementations§
Source§impl Arbitrary for Audio
impl Arbitrary for Audio
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Vec<AudioProperty> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Vec<AudioProperty> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Vec<AudioProperty> as Arbitrary>::Strategy), fn((String, Option<String>, Vec<AudioProperty>)) -> Audio>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Vec<AudioProperty> as Arbitrary>::Strategy), fn((String, Option<String>, Vec<AudioProperty>)) -> Audio>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for Audio
impl Ord for Audio
Source§impl PartialOrd for Audio
impl PartialOrd for Audio
Source§impl ToCommand for Audio
impl ToCommand for Audio
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations§
impl Freeze for Audio
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnsafeUnpin for Audio
impl UnwindSafe for Audio
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