pub enum DisplayPowerRequest {
SetDisplayPower {
power_on: bool,
responder: DisplayPowerSetDisplayPowerResponder,
},
}
Expand description
DisplayPower
is an internal service that controls the power state of all
display devices.
Variants§
SetDisplayPower
Set the power state of all connected display devices to power_on
.
It succeeds when all connected displays are turned on or off; once
display devices are turned off, fuchsia.hardware.display.Controller
clients will not receive OnVsync
events anymore until they are turned
on again.
If any of the connected displays fails to turn on/off, it will return
ZX_ERR_NOT_SUPPORTED
error, and only the power states of the devices
which support power state control will be changed.
All display devices are turned on by default.
Implementations§
Source§impl DisplayPowerRequest
impl DisplayPowerRequest
pub fn into_set_display_power( self, ) -> Option<(bool, DisplayPowerSetDisplayPowerResponder)>
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 DisplayPowerRequest
impl !RefUnwindSafe for DisplayPowerRequest
impl Send for DisplayPowerRequest
impl Sync for DisplayPowerRequest
impl Unpin for DisplayPowerRequest
impl !UnwindSafe for DisplayPowerRequest
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