fidl_fuchsia_virtualaudio

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type GetFormatResponseFut: Future<Output = Result<DeviceGetFormatResult, Error>> + Send;
    type GetGainResponseFut: Future<Output = Result<DeviceGetGainResult, Error>> + Send;
    type GetBufferResponseFut: Future<Output = Result<DeviceGetBufferResult, Error>> + Send;
    type SetNotificationFrequencyResponseFut: Future<Output = Result<DeviceSetNotificationFrequencyResult, Error>> + Send;
    type GetPositionResponseFut: Future<Output = Result<DeviceGetPositionResult, Error>> + Send;
    type ChangePlugStateResponseFut: Future<Output = Result<DeviceChangePlugStateResult, Error>> + Send;
    type AdjustClockRateResponseFut: Future<Output = Result<DeviceAdjustClockRateResult, Error>> + Send;

    // Required methods
    fn get_format(&self) -> Self::GetFormatResponseFut;
    fn get_gain(&self) -> Self::GetGainResponseFut;
    fn get_buffer(&self) -> Self::GetBufferResponseFut;
    fn set_notification_frequency(
        &self,
        notifications_per_ring: u32,
    ) -> Self::SetNotificationFrequencyResponseFut;
    fn get_position(&self) -> Self::GetPositionResponseFut;
    fn change_plug_state(
        &self,
        plug_change_time: i64,
        plugged: bool,
    ) -> Self::ChangePlugStateResponseFut;
    fn adjust_clock_rate(
        &self,
        ppm_from_monotonic: i32,
    ) -> Self::AdjustClockRateResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_format(&self) -> Self::GetFormatResponseFut

Source

fn get_gain(&self) -> Self::GetGainResponseFut

Source

fn get_buffer(&self) -> Self::GetBufferResponseFut

Source

fn set_notification_frequency( &self, notifications_per_ring: u32, ) -> Self::SetNotificationFrequencyResponseFut

Source

fn get_position(&self) -> Self::GetPositionResponseFut

Source

fn change_plug_state( &self, plug_change_time: i64, plugged: bool, ) -> Self::ChangePlugStateResponseFut

Source

fn adjust_clock_rate( &self, ppm_from_monotonic: i32, ) -> Self::AdjustClockRateResponseFut

Implementors§