pub struct ViewProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ViewProviderSynchronousProxy
impl ViewProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ViewProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ViewProviderEvent, 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 create_view_with_view_ref(
&self,
token: EventPair,
view_ref_control: ViewRefControl,
view_ref: ViewRef,
) -> Result<(), Error>
pub fn create_view_with_view_ref( &self, token: EventPair, view_ref_control: ViewRefControl, view_ref: ViewRef, ) -> Result<(), Error>
Creates a new View under the control of the ViewProvider.
token
is one half of the shared eventpair which will bind the new View
to its associated ViewHolder. The ViewProvider will use token
to
create its internal View representation. The caller is expected to use
its half to create corresponding ViewHolder object.
view_ref_control
and view_ref
are two typed handles to each half of the
same event pair. The view_ref
can be cloned before passing it to this method,
which will allow clients to track the view (e.g., in a focus chain update).
view_ref_control
must not have the ZX_RIGHT_DUPLICATE set, or view creation
will fail.
Sourcepub fn create_view2(&self, args: CreateView2Args) -> Result<(), Error>
pub fn create_view2(&self, args: CreateView2Args) -> Result<(), Error>
Creates a new View under the control of the ViewProvider.
The args are provided as a table, for forward compatibility. See documentation on the individual table fields.
Trait Implementations§
Source§impl Debug for ViewProviderSynchronousProxy
impl Debug for ViewProviderSynchronousProxy
Source§impl SynchronousProxy for ViewProviderSynchronousProxy
impl SynchronousProxy for ViewProviderSynchronousProxy
Source§type Proxy = ViewProviderProxy
type Proxy = ViewProviderProxy
Source§type Protocol = ViewProviderMarker
type Protocol = ViewProviderMarker
Proxy
controls.