pub enum DisplayPowerRequest {
SetPowerMode {
power_mode: PowerMode,
responder: DisplayPowerSetPowerModeResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DisplayPowerControlHandle,
method_type: MethodType,
},
}
Expand description
Controls the power state of the default display device.
Variants§
SetPowerMode
Set the power state of the default connected display device to power_mode
.
Errors:
ZX_ERR_NOT_FOUND
: There is no connected display.ZX_ERR_NOT_SUPPORTED
: The default connected display driver or hardware does not support the requested power mode.ZX_ERR_INTERNAL
: Operation failed for another reason.
#[non_exhaustive]_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_power_mode( self, ) -> Option<(PowerMode, DisplayPowerSetPowerModeResponder)>
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