pub struct ProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ProviderSynchronousProxy
impl ProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProviderEvent, 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 open_coordinator_with_listener_for_virtcon(
&self,
payload: ProviderOpenCoordinatorWithListenerForVirtconRequest,
___deadline: MonotonicInstant,
) -> Result<ProviderOpenCoordinatorWithListenerForVirtconResult, Error>
pub fn open_coordinator_with_listener_for_virtcon( &self, payload: ProviderOpenCoordinatorWithListenerForVirtconRequest, ___deadline: MonotonicInstant, ) -> Result<ProviderOpenCoordinatorWithListenerForVirtconResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<ProviderOpenCoordinatorWithListenerForPrimaryResult, Error>
pub fn open_coordinator_with_listener_for_primary( &self, payload: ProviderOpenCoordinatorWithListenerForPrimaryRequest, ___deadline: MonotonicInstant, ) -> Result<ProviderOpenCoordinatorWithListenerForPrimaryResult, Error>
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 Debug for ProviderSynchronousProxy
impl Debug for ProviderSynchronousProxy
Source§impl SynchronousProxy for ProviderSynchronousProxy
impl SynchronousProxy for ProviderSynchronousProxy
Source§type Proxy = ProviderProxy
type Proxy = ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
Proxy
controls.