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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".