pub enum AudioRequest {
Watch {
responder: AudioWatchResponder,
},
Watch2 {
responder: AudioWatch2Responder,
},
Set {
settings: AudioSettings,
responder: AudioSetResponder,
},
Set2 {
settings: AudioSettings2,
responder: AudioSet2Responder,
},
_UnknownMethod {
ordinal: u64,
control_handle: AudioControlHandle,
method_type: MethodType,
},
}
Expand description
Settings related to audio.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Variants§
Watch
Gets the current AudioSettings. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
responder: AudioWatchResponder
Watch2
Gets the current AudioSettings2. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
responder: AudioWatch2Responder
Set
Sets audio settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Set2
Sets audio settings. Only table fields that are set will lead to any changes; otherwise existing settings are unchanged.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: AudioControlHandle
method_type: MethodType
Implementations§
Source§impl AudioRequest
impl AudioRequest
pub fn into_watch(self) -> Option<AudioWatchResponder>
pub fn into_watch2(self) -> Option<AudioWatch2Responder>
pub fn into_set(self) -> Option<(AudioSettings, AudioSetResponder)>
pub fn into_set2(self) -> Option<(AudioSettings2, AudioSet2Responder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL