pub enum DisplayPowerRequest {
SetDisplayPower {
power_on: bool,
responder: DisplayPowerSetDisplayPowerResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: DisplayPowerControlHandle,
method_type: MethodType,
},
}
Expand description
Controls the power state of the default display device.
Variants§
SetDisplayPower
Set the power state of the default connected display device to power_on
.
When successfull, the connected display is turned on or off. Once the
display device is turned off, [fuchsia.hardware.display/Coordinator
]
clients will not receive OnVsync
events anymore until the display device is
turned on again.
Fails with ZX_ERR_NOT_SUPPORTED if the connected display fails to turn on/off.
All display devices are turned on by default.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DisplayPowerControlHandle
§
method_type: MethodType
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