pub struct ProviderProxy { /* private fields */ }
Implementations§
Source§impl ProviderProxy
impl ProviderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.display/Provider.
Sourcepub fn take_event_stream(&self) -> ProviderEventStream
pub fn take_event_stream(&self) -> ProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn open_coordinator_with_listener_for_virtcon(
&self,
payload: ProviderOpenCoordinatorWithListenerForVirtconRequest,
) -> QueryResponseFut<ProviderOpenCoordinatorWithListenerForVirtconResult, DefaultFuchsiaResourceDialect>
pub fn open_coordinator_with_listener_for_virtcon( &self, payload: ProviderOpenCoordinatorWithListenerForVirtconRequest, ) -> QueryResponseFut<ProviderOpenCoordinatorWithListenerForVirtconResult, DefaultFuchsiaResourceDialect>
Opens a Virtcon client connection to the display coordinator.
On success, coordinator
and coordinator_listener
will be bound to
the display coordinator, as the Virtcon client.
No event will be dispatched to the Coordinator
protocol.
Returns ZX_ERR_ALREADY_BOUND
if the display coordinator already has a
connected Virtcon client.
Sourcepub fn open_coordinator_with_listener_for_primary(
&self,
payload: ProviderOpenCoordinatorWithListenerForPrimaryRequest,
) -> QueryResponseFut<ProviderOpenCoordinatorWithListenerForPrimaryResult, DefaultFuchsiaResourceDialect>
pub fn open_coordinator_with_listener_for_primary( &self, payload: ProviderOpenCoordinatorWithListenerForPrimaryRequest, ) -> QueryResponseFut<ProviderOpenCoordinatorWithListenerForPrimaryResult, DefaultFuchsiaResourceDialect>
Opens a primary client connection to the display coordinator.
On success, coordinator
and coordinator_listener
will be bound to
the display coordinator, as the primary client.
No event will be dispatched to the Coordinator
protocol.
Returns ZX_ERR_ALREADY_BOUND
if the display coordinator already has a
connected primary client.
Trait Implementations§
Source§impl Clone for ProviderProxy
impl Clone for ProviderProxy
Source§fn clone(&self) -> ProviderProxy
fn clone(&self) -> ProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProviderProxy
impl Debug for ProviderProxy
Source§impl ProviderProxyInterface for ProviderProxy
impl ProviderProxyInterface for ProviderProxy
type OpenCoordinatorWithListenerForVirtconResponseFut = QueryResponseFut<Result<(), i32>>
type OpenCoordinatorWithListenerForPrimaryResponseFut = QueryResponseFut<Result<(), i32>>
fn open_coordinator_with_listener_for_virtcon( &self, payload: ProviderOpenCoordinatorWithListenerForVirtconRequest, ) -> Self::OpenCoordinatorWithListenerForVirtconResponseFut
fn open_coordinator_with_listener_for_primary( &self, payload: ProviderOpenCoordinatorWithListenerForPrimaryRequest, ) -> Self::OpenCoordinatorWithListenerForPrimaryResponseFut
Source§impl Proxy for ProviderProxy
impl Proxy for ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
Proxy
controls.