fidl_fuchsia_hardware_audio

Trait CodecProxyInterface

Source
pub trait CodecProxyInterface: Send + Sync {
    type GetHealthStateResponseFut: Future<Output = Result<HealthState, Error>> + Send;
    type ResetResponseFut: Future<Output = Result<(), Error>> + Send;
    type GetPropertiesResponseFut: Future<Output = Result<CodecProperties, Error>> + Send;
    type StopResponseFut: Future<Output = Result<i64, Error>> + Send;
    type StartResponseFut: Future<Output = Result<i64, Error>> + Send;
    type IsBridgeableResponseFut: Future<Output = Result<bool, Error>> + Send;
    type GetDaiFormatsResponseFut: Future<Output = Result<CodecGetDaiFormatsResult, Error>> + Send;
    type SetDaiFormatResponseFut: Future<Output = Result<CodecSetDaiFormatResult, 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 reset(&self) -> Self::ResetResponseFut;
    fn get_properties(&self) -> Self::GetPropertiesResponseFut;
    fn stop(&self) -> Self::StopResponseFut;
    fn start(&self) -> Self::StartResponseFut;
    fn is_bridgeable(&self) -> Self::IsBridgeableResponseFut;
    fn set_bridged_mode(&self, enable_bridged_mode: bool) -> Result<(), Error>;
    fn get_dai_formats(&self) -> Self::GetDaiFormatsResponseFut;
    fn set_dai_format(
        &self,
        format: &DaiFormat,
    ) -> Self::SetDaiFormatResponseFut;
    fn watch_plug_state(&self) -> Self::WatchPlugStateResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§