pub enum UsageAudioConsumerFactoryRequest {
CreateAudioConsumer {
usage: AudioRenderUsage,
audio_consumer_request: ServerEnd<AudioConsumerMarker>,
control_handle: UsageAudioConsumerFactoryControlHandle,
},
}
Expand description
Interface for creating audio consumers for local rendering.
Variants§
CreateAudioConsumer
Creates an AudioConsumer
, which is an interface for playing audio, given a usage value.
Audio submitted to such a consumer is always rendered locally.
Fields
§
usage: AudioRenderUsage
§
audio_consumer_request: ServerEnd<AudioConsumerMarker>
§
control_handle: UsageAudioConsumerFactoryControlHandle
Implementations§
Source§impl UsageAudioConsumerFactoryRequest
impl UsageAudioConsumerFactoryRequest
pub fn into_create_audio_consumer( self, ) -> Option<(AudioRenderUsage, ServerEnd<AudioConsumerMarker>, UsageAudioConsumerFactoryControlHandle)>
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 UsageAudioConsumerFactoryRequest
impl !RefUnwindSafe for UsageAudioConsumerFactoryRequest
impl Send for UsageAudioConsumerFactoryRequest
impl Sync for UsageAudioConsumerFactoryRequest
impl Unpin for UsageAudioConsumerFactoryRequest
impl !UnwindSafe for UsageAudioConsumerFactoryRequest
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