pub enum AudioRequest {
CreateAudioRenderer {
audio_renderer_request: ServerEnd<AudioRendererMarker>,
control_handle: AudioControlHandle,
},
CreateAudioCapturer {
audio_capturer_request: ServerEnd<AudioCapturerMarker>,
loopback: bool,
control_handle: AudioControlHandle,
},
}
Variants§
CreateAudioRenderer
CreateAudioCapturer
Creates an AudioCapturer which either captures from the current default audio input device, or loops-back from the current default audio output device based on value passed for the loopback flag.
Implementations§
Source§impl AudioRequest
impl AudioRequest
pub fn into_create_audio_renderer( self, ) -> Option<(ServerEnd<AudioRendererMarker>, AudioControlHandle)>
pub fn into_create_audio_capturer( self, ) -> Option<(ServerEnd<AudioCapturerMarker>, bool, AudioControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioRequest
impl !RefUnwindSafe for AudioRequest
impl Send for AudioRequest
impl Sync for AudioRequest
impl Unpin for AudioRequest
impl !UnwindSafe for AudioRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more