pub enum ControlRequest {
GetDefaultConfiguration {
type_: DeviceType,
direction: Direction,
responder: ControlGetDefaultConfigurationResponder,
},
AddDevice {
config: Configuration,
server: ServerEnd<DeviceMarker>,
responder: ControlAddDeviceResponder,
},
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§
GetDefaultConfiguration
Returns the default configuration for the given device type and direction.
AddDevice
Adds a device to the device tree.
The device lives until the Device
FIDL channel is closed.
GetNumDevices
Returns the number of active input and output devices and devices with unspecified direction.
Fields
§
responder: ControlGetNumDevicesResponder
RemoveAll
Synchronously remove all all active input and output devices.
Fields
§
responder: ControlRemoveAllResponder
Implementations§
Source§impl ControlRequest
impl ControlRequest
pub fn into_get_default_configuration( self, ) -> Option<(DeviceType, Direction, ControlGetDefaultConfigurationResponder)>
pub fn into_add_device( self, ) -> Option<(Configuration, ServerEnd<DeviceMarker>, ControlAddDeviceResponder)>
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlRequest
impl !RefUnwindSafe for ControlRequest
impl Send for ControlRequest
impl Sync for ControlRequest
impl Unpin for ControlRequest
impl !UnwindSafe for ControlRequest
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