pub enum Usage2AudioConsumerFactoryRequest {
CreateAudioConsumer {
usage: AudioRenderUsage2,
audio_consumer_request: ServerEnd<AudioConsumerMarker>,
control_handle: Usage2AudioConsumerFactoryControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: Usage2AudioConsumerFactoryControlHandle,
method_type: MethodType,
},
}
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: AudioRenderUsage2
§
audio_consumer_request: ServerEnd<AudioConsumerMarker>
§
control_handle: Usage2AudioConsumerFactoryControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: Usage2AudioConsumerFactoryControlHandle
§
method_type: MethodType
Implementations§
Source§impl Usage2AudioConsumerFactoryRequest
impl Usage2AudioConsumerFactoryRequest
pub fn into_create_audio_consumer( self, ) -> Option<(AudioRenderUsage2, ServerEnd<AudioConsumerMarker>, Usage2AudioConsumerFactoryControlHandle)>
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 Usage2AudioConsumerFactoryRequest
impl !RefUnwindSafe for Usage2AudioConsumerFactoryRequest
impl Send for Usage2AudioConsumerFactoryRequest
impl Sync for Usage2AudioConsumerFactoryRequest
impl Unpin for Usage2AudioConsumerFactoryRequest
impl !UnwindSafe for Usage2AudioConsumerFactoryRequest
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