pub trait HeadsetGainProxyInterface: Send + Sync {
type WatchSpeakerGainResponseFut: Future<Output = Result<u8, Error>> + Send;
type WatchMicrophoneGainResponseFut: Future<Output = Result<u8, Error>> + Send;
// Required methods
fn set_speaker_gain(&self, requested: u8) -> Result<(), Error>;
fn watch_speaker_gain(&self) -> Self::WatchSpeakerGainResponseFut;
fn set_microphone_gain(&self, requested: u8) -> Result<(), Error>;
fn watch_microphone_gain(&self) -> Self::WatchMicrophoneGainResponseFut;
}Required Associated Types§
type WatchSpeakerGainResponseFut: Future<Output = Result<u8, Error>> + Send
type WatchMicrophoneGainResponseFut: Future<Output = Result<u8, Error>> + Send
Required Methods§
fn set_speaker_gain(&self, requested: u8) -> Result<(), Error>
fn watch_speaker_gain(&self) -> Self::WatchSpeakerGainResponseFut
fn set_microphone_gain(&self, requested: u8) -> Result<(), Error>
fn watch_microphone_gain(&self) -> Self::WatchMicrophoneGainResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".