pub enum DisplayRequest {
Watch {
responder: DisplayWatchResponder,
},
Set {
settings: DisplaySettings,
responder: DisplaySetResponder,
},
}
Expand description
Settings related to display.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Variants§
Watch
Gets the current DisplaySettings. 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: DisplayWatchResponder
Set
Sets display settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Implementations§
Source§impl DisplayRequest
impl DisplayRequest
pub fn into_watch(self) -> Option<DisplayWatchResponder>
pub fn into_set(self) -> Option<(DisplaySettings, DisplaySetResponder)>
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 DisplayRequest
impl !RefUnwindSafe for DisplayRequest
impl Send for DisplayRequest
impl Sync for DisplayRequest
impl Unpin for DisplayRequest
impl !UnwindSafe for DisplayRequest
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