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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ProviderProxy
impl !RefUnwindSafe for ProviderProxy
impl Send for ProviderProxy
impl Sync for ProviderProxy
impl Unpin for ProviderProxy
impl !UnwindSafe for ProviderProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)