pub struct DisplayDeviceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DisplayDeviceSynchronousProxy
impl DisplayDeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DisplayDeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DisplayDeviceEvent, 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 get_display_state(
&self,
___deadline: MonotonicInstant,
) -> Result<DisplayDeviceGetDisplayStateResult, Error>
pub fn get_display_state( &self, ___deadline: MonotonicInstant, ) -> Result<DisplayDeviceGetDisplayStateResult, Error>
Gets the current state of the display.
Sourcepub fn get_display_info(
&self,
___deadline: MonotonicInstant,
) -> Result<DisplayDeviceGetDisplayInfoResult, Error>
pub fn get_display_info( &self, ___deadline: MonotonicInstant, ) -> Result<DisplayDeviceGetDisplayInfoResult, Error>
Gets synchronization information for the display. This can include the display’s mode, panel mode, and brightness levels.
Sourcepub fn get_display_select(
&self,
___deadline: MonotonicInstant,
) -> Result<DisplayDeviceGetDisplaySelectResult, Error>
pub fn get_display_select( &self, ___deadline: MonotonicInstant, ) -> Result<DisplayDeviceGetDisplaySelectResult, Error>
Gets the current display owner, which is either the AP (Application Processor) or the MCU (Microcontroller Unit).
Sourcepub fn set_display_select(
&self,
payload: &DisplayDeviceSetDisplaySelectRequest,
___deadline: MonotonicInstant,
) -> Result<DisplayDeviceSetDisplaySelectResult, Error>
pub fn set_display_select( &self, payload: &DisplayDeviceSetDisplaySelectRequest, ___deadline: MonotonicInstant, ) -> Result<DisplayDeviceSetDisplaySelectResult, Error>
Sets the display owner to be either the AP (Application Processor) or the MCU (Microcontroller Unit).
Trait Implementations§
Source§impl From<Channel> for DisplayDeviceSynchronousProxy
impl From<Channel> for DisplayDeviceSynchronousProxy
Source§impl From<DisplayDeviceSynchronousProxy> for Handle
impl From<DisplayDeviceSynchronousProxy> for Handle
Source§fn from(value: DisplayDeviceSynchronousProxy) -> Self
fn from(value: DisplayDeviceSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for DisplayDeviceSynchronousProxy
impl FromClient for DisplayDeviceSynchronousProxy
Source§type Protocol = DisplayDeviceMarker
type Protocol = DisplayDeviceMarker
The protocol.
Source§fn from_client(value: ClientEnd<DisplayDeviceMarker>) -> Self
fn from_client(value: ClientEnd<DisplayDeviceMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for DisplayDeviceSynchronousProxy
impl SynchronousProxy for DisplayDeviceSynchronousProxy
Source§type Proxy = DisplayDeviceProxy
type Proxy = DisplayDeviceProxy
The async proxy for the same protocol.
Source§type Protocol = DisplayDeviceMarker
type Protocol = DisplayDeviceMarker
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 DisplayDeviceSynchronousProxy
impl RefUnwindSafe for DisplayDeviceSynchronousProxy
impl Send for DisplayDeviceSynchronousProxy
impl Sync for DisplayDeviceSynchronousProxy
impl Unpin for DisplayDeviceSynchronousProxy
impl UnwindSafe for DisplayDeviceSynchronousProxy
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