pub struct SetupProxy { /* private fields */ }
Implementations§
Source§impl SetupProxy
impl SetupProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.pointerinjector.configuration/Setup.
Sourcepub fn take_event_stream(&self) -> SetupEventStream
pub fn take_event_stream(&self) -> SetupEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_view_refs(
&self,
) -> QueryResponseFut<(ViewRef, ViewRef), DefaultFuchsiaResourceDialect>
pub fn get_view_refs( &self, ) -> QueryResponseFut<(ViewRef, ViewRef), DefaultFuchsiaResourceDialect>
Returns the viewrefs for injection authority (Config.context
) and injection
destination (Config.target
).
This only returns when valid context and target views exist. Typically called just once.
Sourcepub fn watch_viewport(
&self,
) -> QueryResponseFut<Viewport, DefaultFuchsiaResourceDialect>
pub fn watch_viewport( &self, ) -> QueryResponseFut<Viewport, DefaultFuchsiaResourceDialect>
Returns the current viewport. Follows the hanging get pattern.
The first call to this function will return the current viewport, whenever one exists. Subsequent calls will block until the viewport has been updated.
Flow control: There should only be one outstanding call to this function. The channel will be closed if an additional call to this function is made while a call is outstanding.
Trait Implementations§
Source§impl Clone for SetupProxy
impl Clone for SetupProxy
Source§fn clone(&self) -> SetupProxy
fn clone(&self) -> SetupProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SetupProxy
impl Debug for SetupProxy
Source§impl Proxy for SetupProxy
impl Proxy for SetupProxy
Source§type Protocol = SetupMarker
type Protocol = SetupMarker
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>
Source§impl SetupProxyInterface for SetupProxy
impl SetupProxyInterface for SetupProxy
type GetViewRefsResponseFut = QueryResponseFut<(ViewRef, ViewRef)>
type WatchViewportResponseFut = QueryResponseFut<Viewport>
fn get_view_refs(&self) -> Self::GetViewRefsResponseFut
fn watch_viewport(&self) -> Self::WatchViewportResponseFut
Auto Trait Implementations§
impl Freeze for SetupProxy
impl !RefUnwindSafe for SetupProxy
impl Send for SetupProxy
impl Sync for SetupProxy
impl Unpin for SetupProxy
impl !UnwindSafe for SetupProxy
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
)