pub struct DisplayPowerSynchronousProxy { /* private fields */ }
Implementations§
source§impl DisplayPowerSynchronousProxy
impl DisplayPowerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DisplayPowerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DisplayPowerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn set_display_power(
&self,
power_on: bool,
___deadline: MonotonicInstant,
) -> Result<DisplayPowerSetDisplayPowerResult, Error>
pub fn set_display_power( &self, power_on: bool, ___deadline: MonotonicInstant, ) -> Result<DisplayPowerSetDisplayPowerResult, Error>
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.
Trait Implementations§
source§impl Debug for DisplayPowerSynchronousProxy
impl Debug for DisplayPowerSynchronousProxy
source§impl SynchronousProxy for DisplayPowerSynchronousProxy
impl SynchronousProxy for DisplayPowerSynchronousProxy
§type Proxy = DisplayPowerProxy
type Proxy = DisplayPowerProxy
The async proxy for the same protocol.
§type Protocol = DisplayPowerMarker
type Protocol = DisplayPowerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for DisplayPowerSynchronousProxy
impl RefUnwindSafe for DisplayPowerSynchronousProxy
impl Send for DisplayPowerSynchronousProxy
impl Sync for DisplayPowerSynchronousProxy
impl Unpin for DisplayPowerSynchronousProxy
impl UnwindSafe for DisplayPowerSynchronousProxy
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