Skip to main content

HeadsetGainProxyInterface

Trait HeadsetGainProxyInterface 

Source
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§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§