pub struct ParentViewportWatcherProxy { /* private fields */ }
Implementations§
Source§impl ParentViewportWatcherProxy
impl ParentViewportWatcherProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.composition/ParentViewportWatcher.
Sourcepub fn take_event_stream(&self) -> ParentViewportWatcherEventStream
pub fn take_event_stream(&self) -> ParentViewportWatcherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_layout(
&self,
) -> QueryResponseFut<LayoutInfo, DefaultFuchsiaResourceDialect>
pub fn get_layout( &self, ) -> QueryResponseFut<LayoutInfo, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<ParentViewportStatus, DefaultFuchsiaResourceDialect>
pub fn get_status( &self, ) -> QueryResponseFut<ParentViewportStatus, DefaultFuchsiaResourceDialect>
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 Clone for ParentViewportWatcherProxy
impl Clone for ParentViewportWatcherProxy
Source§fn clone(&self) -> ParentViewportWatcherProxy
fn clone(&self) -> ParentViewportWatcherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ParentViewportWatcherProxy
impl Debug for ParentViewportWatcherProxy
Source§impl ParentViewportWatcherProxyInterface for ParentViewportWatcherProxy
impl ParentViewportWatcherProxyInterface for ParentViewportWatcherProxy
type GetLayoutResponseFut = QueryResponseFut<LayoutInfo>
type GetStatusResponseFut = QueryResponseFut<ParentViewportStatus>
fn get_layout(&self) -> Self::GetLayoutResponseFut
fn get_status(&self) -> Self::GetStatusResponseFut
Source§impl Proxy for ParentViewportWatcherProxy
impl Proxy for ParentViewportWatcherProxy
Source§type Protocol = ParentViewportWatcherMarker
type Protocol = ParentViewportWatcherMarker
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 ParentViewportWatcherProxy
impl !RefUnwindSafe for ParentViewportWatcherProxy
impl Send for ParentViewportWatcherProxy
impl Sync for ParentViewportWatcherProxy
impl Unpin for ParentViewportWatcherProxy
impl !UnwindSafe for ParentViewportWatcherProxy
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
)