pub struct ParentViewportWatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ParentViewportWatcherSynchronousProxy
impl ParentViewportWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ParentViewportWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ParentViewportWatcherEvent, 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 get_layout(
&self,
___deadline: MonotonicInstant,
) -> Result<LayoutInfo, Error>
pub fn get_layout( &self, ___deadline: MonotonicInstant, ) -> Result<LayoutInfo, Error>
A hanging get for receiving layout information. Clients may receive layout information
before the ParentViewportWatcher operation has been presented. This allows children to
layout their content before their first call to [Present
]. In transition cases where two
ParentViewportWatcher channels exist at the same time, both protocol instances will be
receiving different layout information.
This hanging get will only fire when the LayoutInfo is different than the previously returned LayoutInfo. Note that, since LayoutInfo is a table, only some fields may have changed.
It is invalid to call GetLayout
while a previous call is still pending. Doing so will
cause both this channel and the Flatland channel that handed out ParentViewportWatcher to be
closed.
Sourcepub fn get_status(
&self,
___deadline: MonotonicInstant,
) -> Result<ParentViewportStatus, Error>
pub fn get_status( &self, ___deadline: MonotonicInstant, ) -> Result<ParentViewportStatus, Error>
A hanging get for receiving the status of the parent Viewport. This provides global connectivity information to the child.
This hanging get will only fire when the ParentViewportStatus is different than the previously returned ParentViewportStatus.
It is invalid to call GetStatus
while a previous call is still pending. Doing so will
cause both this channel and the Flatland channel that handed out ParentViewportWatcher to be
closed.
Trait Implementations§
Source§impl SynchronousProxy for ParentViewportWatcherSynchronousProxy
impl SynchronousProxy for ParentViewportWatcherSynchronousProxy
Source§type Proxy = ParentViewportWatcherProxy
type Proxy = ParentViewportWatcherProxy
Source§type Protocol = ParentViewportWatcherMarker
type Protocol = ParentViewportWatcherMarker
Proxy
controls.