pub struct DisplayDeviceProxy { /* private fields */ }
Implementations§
Source§impl DisplayDeviceProxy
impl DisplayDeviceProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.google.nanohub/DisplayDevice.
Sourcepub fn take_event_stream(&self) -> DisplayDeviceEventStream
pub fn take_event_stream(&self) -> DisplayDeviceEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_display_state(
&self,
) -> QueryResponseFut<DisplayDeviceGetDisplayStateResult, DefaultFuchsiaResourceDialect>
pub fn get_display_state( &self, ) -> QueryResponseFut<DisplayDeviceGetDisplayStateResult, DefaultFuchsiaResourceDialect>
Gets the current state of the display.
Sourcepub fn get_display_info(
&self,
) -> QueryResponseFut<DisplayDeviceGetDisplayInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_display_info( &self, ) -> QueryResponseFut<DisplayDeviceGetDisplayInfoResult, DefaultFuchsiaResourceDialect>
Gets synchronization information for the display. This can include the display’s mode, panel mode, and brightness levels.
Sourcepub fn get_display_select(
&self,
) -> QueryResponseFut<DisplayDeviceGetDisplaySelectResult, DefaultFuchsiaResourceDialect>
pub fn get_display_select( &self, ) -> QueryResponseFut<DisplayDeviceGetDisplaySelectResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<DisplayDeviceSetDisplaySelectResult, DefaultFuchsiaResourceDialect>
pub fn set_display_select( &self, payload: &DisplayDeviceSetDisplaySelectRequest, ) -> QueryResponseFut<DisplayDeviceSetDisplaySelectResult, DefaultFuchsiaResourceDialect>
Sets the display owner to be either the AP (Application Processor) or the MCU (Microcontroller Unit).
Trait Implementations§
Source§impl Clone for DisplayDeviceProxy
impl Clone for DisplayDeviceProxy
Source§fn clone(&self) -> DisplayDeviceProxy
fn clone(&self) -> DisplayDeviceProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisplayDeviceProxy
impl Debug for DisplayDeviceProxy
Source§impl DisplayDeviceProxyInterface for DisplayDeviceProxy
impl DisplayDeviceProxyInterface for DisplayDeviceProxy
type GetDisplayStateResponseFut = QueryResponseFut<Result<DisplayState, i32>>
type GetDisplayInfoResponseFut = QueryResponseFut<Result<DisplaySyncInfo, i32>>
type GetDisplaySelectResponseFut = QueryResponseFut<Result<DisplayDeviceGetDisplaySelectResponse, i32>>
type SetDisplaySelectResponseFut = QueryResponseFut<Result<(), i32>>
fn get_display_state(&self) -> Self::GetDisplayStateResponseFut
fn get_display_info(&self) -> Self::GetDisplayInfoResponseFut
fn get_display_select(&self) -> Self::GetDisplaySelectResponseFut
fn set_display_select( &self, payload: &DisplayDeviceSetDisplaySelectRequest, ) -> Self::SetDisplaySelectResponseFut
Source§impl Proxy for DisplayDeviceProxy
impl Proxy for DisplayDeviceProxy
Source§type Protocol = DisplayDeviceMarker
type Protocol = DisplayDeviceMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for DisplayDeviceProxy
impl !RefUnwindSafe for DisplayDeviceProxy
impl Send for DisplayDeviceProxy
impl Sync for DisplayDeviceProxy
impl Unpin for DisplayDeviceProxy
impl !UnwindSafe for DisplayDeviceProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
Converts from a client.