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§

source§

impl DeviceProxyInterface for DeviceProxy

§

type GetFormatResponseFut = QueryResponseFut<Result<(u32, u32, u32, i64), Error>>

§

type GetGainResponseFut = QueryResponseFut<Result<(bool, bool, f32), Error>>

§

type GetBufferResponseFut = QueryResponseFut<Result<(Vmo, u32, u32), Error>>

§

type SetNotificationFrequencyResponseFut = QueryResponseFut<Result<(), Error>>

§

type GetPositionResponseFut = QueryResponseFut<Result<(i64, u32), Error>>

§

type ChangePlugStateResponseFut = QueryResponseFut<Result<(), Error>>

§

type AdjustClockRateResponseFut = QueryResponseFut<Result<(), Error>>