pub struct RegistryProxy { /* private fields */ }
Implementations§
Source§impl RegistryProxy
impl RegistryProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.observation.scope/Registry.
Sourcepub fn take_event_stream(&self) -> RegistryEventStream
pub fn take_event_stream(&self) -> RegistryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn register_scoped_view_tree_watcher(
&self,
context_view: u64,
watcher: ServerEnd<ViewTreeWatcherMarker>,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_scoped_view_tree_watcher( &self, context_view: u64, watcher: ServerEnd<ViewTreeWatcherMarker>, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Sets up a geometry ViewTreeWatcher
channel which reports the view tree
geometry for a specific view, identified by context_view
. The data
received describes the context_view
and its descendant views.
This method may be called multiple times to obtain multiple geometry
ViewTreeWatcher
s. Typical usage is to obtain just one geometry
ViewTreeWatcher
.
Client can freely disconnect this Registry
endpoint after this method
returns and the ViewTreeWatcher
endpoint will remain active.
Flow control. The caller is allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
Client synchronization. The method response signifies that the server has processed the channel endpoint. A client can synchronize its next actions based on this guarantee (for example, trigger a change in view geometry without the change “getting lost”).
View lifecycle. The view represented by context_view
must first be
created. Otherwise, geometry
channel’s server endpoint is closed.
- request
context_view
a view’s identity, which serves as the root of a view tree - request
geometry
a channel to observecontext_view
’s view tree
- response acknowledgement that
geometry
is connected to the server
Trait Implementations§
Source§impl Clone for RegistryProxy
impl Clone for RegistryProxy
Source§fn clone(&self) -> RegistryProxy
fn clone(&self) -> RegistryProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RegistryProxy
impl Debug for RegistryProxy
Source§impl Proxy for RegistryProxy
impl Proxy for RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
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 RegistryProxyInterface for RegistryProxy
impl RegistryProxyInterface for RegistryProxy
type RegisterScopedViewTreeWatcherResponseFut = QueryResponseFut<()>
fn register_scoped_view_tree_watcher( &self, context_view: u64, watcher: ServerEnd<ViewTreeWatcherMarker>, ) -> Self::RegisterScopedViewTreeWatcherResponseFut
Auto Trait Implementations§
impl Freeze for RegistryProxy
impl !RefUnwindSafe for RegistryProxy
impl Send for RegistryProxy
impl Sync for RegistryProxy
impl Unpin for RegistryProxy
impl !UnwindSafe for RegistryProxy
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
)