fidl_fuchsia_audio_deviceTrait ControlProxyInterface
Source pub trait ControlProxyInterface: Send + Sync {
type GetElementsResponseFut: Future<Output = Result<ReaderGetElementsResult, Error>> + Send;
type WatchElementStateResponseFut: Future<Output = Result<ElementState, Error>> + Send;
type GetTopologiesResponseFut: Future<Output = Result<ReaderGetTopologiesResult, Error>> + Send;
type WatchTopologyResponseFut: Future<Output = Result<u64, Error>> + Send;
type SetElementStateResponseFut: Future<Output = Result<SignalProcessingSetElementStateResult, Error>> + Send;
type SetTopologyResponseFut: Future<Output = Result<SignalProcessingSetTopologyResult, Error>> + Send;
type SetGainResponseFut: Future<Output = Result<ControlSetGainResult, Error>> + Send;
type CreateRingBufferResponseFut: Future<Output = Result<ControlCreateRingBufferResult, Error>> + Send;
type SetDaiFormatResponseFut: Future<Output = Result<ControlSetDaiFormatResult, Error>> + Send;
type CodecStartResponseFut: Future<Output = Result<ControlCodecStartResult, Error>> + Send;
type CodecStopResponseFut: Future<Output = Result<ControlCodecStopResult, Error>> + Send;
type ResetResponseFut: Future<Output = Result<ControlResetResult, Error>> + Send;
// Required methods
fn get_elements(&self) -> Self::GetElementsResponseFut;
fn watch_element_state(
&self,
processing_element_id: u64,
) -> Self::WatchElementStateResponseFut;
fn get_topologies(&self) -> Self::GetTopologiesResponseFut;
fn watch_topology(&self) -> Self::WatchTopologyResponseFut;
fn set_element_state(
&self,
processing_element_id: u64,
state: &SettableElementState,
) -> Self::SetElementStateResponseFut;
fn set_topology(&self, topology_id: u64) -> Self::SetTopologyResponseFut;
fn set_gain(
&self,
payload: &ControlSetGainRequest,
) -> Self::SetGainResponseFut;
fn create_ring_buffer(
&self,
payload: ControlCreateRingBufferRequest,
) -> Self::CreateRingBufferResponseFut;
fn set_dai_format(
&self,
payload: &ControlSetDaiFormatRequest,
) -> Self::SetDaiFormatResponseFut;
fn codec_start(&self) -> Self::CodecStartResponseFut;
fn codec_stop(&self) -> Self::CodecStopResponseFut;
fn reset(&self) -> Self::ResetResponseFut;
}