pub enum ControlRequest {
AddInput {
config: Configuration,
server: ServerEnd<DeviceMarker>,
responder: ControlAddInputResponder,
},
AddOutput {
config: Configuration,
server: ServerEnd<DeviceMarker>,
responder: ControlAddOutputResponder,
},
GetNumDevices {
responder: ControlGetNumDevicesResponder,
},
RemoveAll {
responder: ControlRemoveAllResponder,
},
}
Expand description
This protocol provides methods for adding and removing virtual audio
devices. This protocol is made available through the device tree via
CONTROL_NODE_NAME
.
Variants§
AddInput
Adds an input device to the device tree.
The device lives until the Device
FIDL channel is closed.
AddOutput
Adds an output device to the device tree.
The device lives until the Device
FIDL channel is closed.
GetNumDevices
Fields
§
responder: ControlGetNumDevicesResponder
Returns the number of active input and output virtual devices.
RemoveAll
Fields
§
responder: ControlRemoveAllResponder
Synchronously remove all all active input and output devices.
Implementations§
source§impl ControlRequest
impl ControlRequest
pub fn into_add_input( self ) -> Option<(Configuration, ServerEnd<DeviceMarker>, ControlAddInputResponder)>
pub fn into_add_output( self ) -> Option<(Configuration, ServerEnd<DeviceMarker>, ControlAddOutputResponder)>
pub fn into_get_num_devices(self) -> Option<ControlGetNumDevicesResponder>
pub fn into_remove_all(self) -> Option<ControlRemoveAllResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL