fidl_fuchsia_virtualaudio

Trait ControlProxyInterface

Source
pub trait ControlProxyInterface: Send + Sync {
    type GetDefaultConfigurationResponseFut: Future<Output = Result<ControlGetDefaultConfigurationResult, Error>> + Send;
    type AddDeviceResponseFut: Future<Output = Result<ControlAddDeviceResult, Error>> + Send;
    type GetNumDevicesResponseFut: Future<Output = Result<(u32, u32, u32), Error>> + Send;
    type RemoveAllResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn get_default_configuration(
        &self,
        type_: DeviceType,
        direction: &Direction,
    ) -> Self::GetDefaultConfigurationResponseFut;
    fn add_device(
        &self,
        config: &Configuration,
        server: ServerEnd<DeviceMarker>,
    ) -> Self::AddDeviceResponseFut;
    fn get_num_devices(&self) -> Self::GetNumDevicesResponseFut;
    fn remove_all(&self) -> Self::RemoveAllResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§