pub enum AudioRequest {
Watch {
responder: AudioWatchResponder,
},
Set {
settings: AudioSettings,
responder: AudioSetResponder,
},
}
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
Set
Sets audio settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Implementations§
Source§impl AudioRequest
impl AudioRequest
pub fn into_watch(self) -> Option<AudioWatchResponder>
pub fn into_set(self) -> Option<(AudioSettings, AudioSetResponder)>
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