pub struct ViewProviderProxy { /* private fields */ }
Implementations§
Source§impl ViewProviderProxy
impl ViewProviderProxy
Sourcepub fn take_event_stream(&self) -> ViewProviderEventStream
pub fn take_event_stream(&self) -> ViewProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for ViewProviderProxy
impl Clone for ViewProviderProxy
Source§fn clone(&self) -> ViewProviderProxy
fn clone(&self) -> ViewProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ViewProviderProxy
impl Debug for ViewProviderProxy
Source§impl Proxy for ViewProviderProxy
impl Proxy for ViewProviderProxy
Source§type Protocol = ViewProviderMarker
type Protocol = ViewProviderMarker
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 ViewProviderProxyInterface for ViewProviderProxy
impl ViewProviderProxyInterface for ViewProviderProxy
fn create_view_with_view_ref( &self, token: EventPair, view_ref_control: ViewRefControl, view_ref: ViewRef, ) -> Result<(), Error>
fn create_view2(&self, args: CreateView2Args) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for ViewProviderProxy
impl !RefUnwindSafe for ViewProviderProxy
impl Send for ViewProviderProxy
impl Sync for ViewProviderProxy
impl Unpin for ViewProviderProxy
impl !UnwindSafe for ViewProviderProxy
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
)