fidl_fuchsia_test_audio_recording

Trait AudioRecordingControlProxyInterface

Source
pub trait AudioRecordingControlProxyInterface: Send + Sync {
    type PutInputAudioResponseFut: Future<Output = Result<i32, Error>> + Send;
    type ClearInputAudioResponseFut: Future<Output = Result<AudioRecordingControlClearInputAudioResult, Error>> + Send;
    type GetOutputAudioResponseFut: Future<Output = Result<Vmo, Error>> + Send;
    type StartInputInjectionResponseFut: Future<Output = Result<AudioRecordingControlStartInputInjectionResult, Error>> + Send;
    type StopInputInjectionResponseFut: Future<Output = Result<AudioRecordingControlStopInputInjectionResult, Error>> + Send;
    type StartOutputSaveResponseFut: Future<Output = Result<AudioRecordingControlStartOutputSaveResult, Error>> + Send;
    type StopOutputSaveResponseFut: Future<Output = Result<AudioRecordingControlStopOutputSaveResult, Error>> + Send;

    // Required methods
    fn put_input_audio(
        &self,
        index: i32,
        audio_data: &[u8],
    ) -> Self::PutInputAudioResponseFut;
    fn clear_input_audio(&self, index: i32) -> Self::ClearInputAudioResponseFut;
    fn get_output_audio(&self) -> Self::GetOutputAudioResponseFut;
    fn start_input_injection(
        &self,
        index: i32,
    ) -> Self::StartInputInjectionResponseFut;
    fn stop_input_injection(&self) -> Self::StopInputInjectionResponseFut;
    fn start_output_save(&self) -> Self::StartOutputSaveResponseFut;
    fn stop_output_save(&self) -> Self::StopOutputSaveResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§