pub struct Options {
socket: Option<String>,
socket_path: Option<String>,
fd: Option<RawDescriptor>,
params: Parameters,
}
Expand description
Snd device
Fields§
§socket: Option<String>
deprecated - please use –socket-path instead
socket_path: Option<String>
path to the vhost-user socket to bind to. If this flag is set, –fd cannot be specified.
fd: Option<RawDescriptor>
file descriptor of a connected vhost-user socket. If this flag is set, –socket-path cannot be specified.
params: Parameters
comma separated key=value pairs for setting up cras snd devices. Possible key values: capture - Enable audio capture. Default to false. backend - Which backend to use for vhost-snd (null|cras). client_type - Set specific client type for cras backend. socket_type - Set socket type for cras backend. num_output_devices - Set number of output PCM devices. num_input_devices - Set number of input PCM devices. num_output_streams - Set number of output PCM streams per device. num_input_streams - Set number of input PCM streams per device. Example: [capture=true,backend=BACKEND, num_output_devices=1,num_input_devices=1,num_output_streams=1,num_input_streams=1]
Trait Implementations§
source§impl FromArgs for Options
impl FromArgs for Options
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
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>
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.