fidl_fuchsia_hardware_audioTrait StreamConfigProxyInterface
Source pub trait StreamConfigProxyInterface: Send + Sync {
type GetHealthStateResponseFut: Future<Output = Result<HealthState, Error>> + Send;
type GetPropertiesResponseFut: Future<Output = Result<StreamProperties, Error>> + Send;
type GetSupportedFormatsResponseFut: Future<Output = Result<Vec<SupportedFormats>, Error>> + Send;
type WatchGainStateResponseFut: Future<Output = Result<GainState, Error>> + Send;
type WatchPlugStateResponseFut: Future<Output = Result<PlugState, Error>> + Send;
// Required methods
fn get_health_state(&self) -> Self::GetHealthStateResponseFut;
fn signal_processing_connect(
&self,
protocol: ServerEnd<SignalProcessingMarker>,
) -> Result<(), Error>;
fn get_properties(&self) -> Self::GetPropertiesResponseFut;
fn get_supported_formats(&self) -> Self::GetSupportedFormatsResponseFut;
fn create_ring_buffer(
&self,
format: &Format,
ring_buffer: ServerEnd<RingBufferMarker>,
) -> Result<(), Error>;
fn watch_gain_state(&self) -> Self::WatchGainStateResponseFut;
fn set_gain(&self, target_state: &GainState) -> Result<(), Error>;
fn watch_plug_state(&self) -> Self::WatchPlugStateResponseFut;
}