pub enum Request {
Show 18 variants
Get,
Listen,
OnCameraSWState(bool),
OnButton(MediaButtons),
SetAccessibilityInfo(AccessibilityInfo),
SetVolume(Vec<SetAudioStream>, Id),
SetDisplayInfo(SetDisplayInfo),
SetDnD(DoNotDisturbInfo),
SetLocalResetAllowed(bool),
SetInputStates(Vec<InputDevice>),
SetIntlInfo(IntlInfo),
SetKeyboardInfo(KeyboardInfo),
SetLightGroupValue(String, Vec<LightState>),
SetNightModeInfo(NightModeInfo),
Restore,
Rebroadcast,
SetUserDataSharingConsent(Option<bool>),
SetConfigurationInterfaces(SetConfigurationInterfacesParams),
}
Expand description
The possible requests that can be made on a setting. The sink will expect a subset of the values defined below based on the associated type. The types are arranged alphabetically.
Variants§
Get
Returns the current setting information.
Listen
Requests ongoing updates when the setting changes.
OnCameraSWState(bool)
OnButton(MediaButtons)
SetAccessibilityInfo(AccessibilityInfo)
SetVolume(Vec<SetAudioStream>, Id)
SetDisplayInfo(SetDisplayInfo)
SetDnD(DoNotDisturbInfo)
SetLocalResetAllowed(bool)
SetInputStates(Vec<InputDevice>)
SetIntlInfo(IntlInfo)
SetKeyboardInfo(KeyboardInfo)
SetLightGroupValue(String, Vec<LightState>)
SetNightModeInfo(NightModeInfo)
Restore
Rebroadcast
SetUserDataSharingConsent(Option<bool>)
SetConfigurationInterfaces(SetConfigurationInterfacesParams)
Trait Implementations§
Source§impl From<IntlSettings> for Request
impl From<IntlSettings> for Request
Source§fn from(settings: IntlSettings) -> Self
fn from(settings: IntlSettings) -> Self
Converts to this type from the input type.
Source§impl From<MediaButtons> for Request
impl From<MediaButtons> for Request
Source§fn from(event: MediaButtons) -> Self
fn from(event: MediaButtons) -> Self
Converts to this type from the input type.
Source§impl From<NightModeSettings> for Request
impl From<NightModeSettings> for Request
Source§fn from(settings: NightModeSettings) -> Self
fn from(settings: NightModeSettings) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)