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 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.
Trait Implementations§
Source§impl Debug for DisplayPowerSynchronousProxy
impl Debug for DisplayPowerSynchronousProxy
Source§impl From<Channel> for DisplayPowerSynchronousProxy
impl From<Channel> for DisplayPowerSynchronousProxy
Source§impl From<DisplayPowerSynchronousProxy> for Handle
impl From<DisplayPowerSynchronousProxy> for Handle
Source§fn from(value: DisplayPowerSynchronousProxy) -> Self
fn from(value: DisplayPowerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl SynchronousProxy for DisplayPowerSynchronousProxy
impl SynchronousProxy for DisplayPowerSynchronousProxy
Source§type Proxy = DisplayPowerProxy
type Proxy = DisplayPowerProxy
The async proxy for the same protocol.
Source§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