pub struct RegistrySynchronousProxy { /* private fields */ }Implementations§
Source§impl RegistrySynchronousProxy
impl RegistrySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RegistryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RegistryEvent, 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 register_scoped_view_tree_watcher(
&self,
context_view: u64,
watcher: ServerEnd<ViewTreeWatcherMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_scoped_view_tree_watcher( &self, context_view: u64, watcher: ServerEnd<ViewTreeWatcherMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
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
ViewTreeWatchers. 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_viewa view’s identity, which serves as the root of a view tree - request
geometrya channel to observecontext_view’s view tree
- response acknowledgement that
geometryis connected to the server
Trait Implementations§
Source§impl Debug for RegistrySynchronousProxy
impl Debug for RegistrySynchronousProxy
Source§impl From<Channel> for RegistrySynchronousProxy
Available on Fuchsia only.
impl From<Channel> for RegistrySynchronousProxy
Source§impl From<RegistrySynchronousProxy> for Handle
Available on Fuchsia only.
impl From<RegistrySynchronousProxy> for Handle
Source§fn from(value: RegistrySynchronousProxy) -> Self
fn from(value: RegistrySynchronousProxy) -> Self
Source§impl FromClient for RegistrySynchronousProxy
Available on Fuchsia only.
impl FromClient for RegistrySynchronousProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Source§fn from_client(value: ClientEnd<RegistryMarker>) -> Self
fn from_client(value: ClientEnd<RegistryMarker>) -> Self
Source§impl SynchronousProxy for RegistrySynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for RegistrySynchronousProxy
Source§type Proxy = RegistryProxy
type Proxy = RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Proxy controls.