pub struct GraphicalPresenterProxy { /* private fields */ }Implementations§
Source§impl GraphicalPresenterProxy
impl GraphicalPresenterProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.element/GraphicalPresenter.
Sourcepub fn take_event_stream(&self) -> GraphicalPresenterEventStream
pub fn take_event_stream(&self) -> GraphicalPresenterEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn present_view(
&self,
view_spec: ViewSpec,
annotation_controller: Option<ClientEnd<AnnotationControllerMarker>>,
view_controller_request: Option<ServerEnd<ViewControllerMarker>>,
) -> QueryResponseFut<GraphicalPresenterPresentViewResult, DefaultFuchsiaResourceDialect>
pub fn present_view( &self, view_spec: ViewSpec, annotation_controller: Option<ClientEnd<AnnotationControllerMarker>>, view_controller_request: Option<ServerEnd<ViewControllerMarker>>, ) -> QueryResponseFut<GraphicalPresenterPresentViewResult, DefaultFuchsiaResourceDialect>
Presents the view described by view_spec.
If view_controller_request is provided, it will be connected to a ViewController
implemented by the GraphicalPresenter server. When the view is dismissed,
the ViewController channel is closed with a ZX_OK, at which point it is safe
to clean up resources backing the view. To dismiss the view, the client should
call ViewController.Dismiss() and wait for the ZX_OK epitaph.
Not providing a view_controller_request handle will make it impossible for the
client to observe the view’s lifecycle.
view_specdescribes the view to presentannotation_controllera handle to anAnnotationController, allowing theGraphicalPresenterserver to observe and update the view’s annotations.view_controller_requestan optional request for a controller for the view
- error
view_specmust containview_holder_tokenandview_reffor Gfx views, ORviewport_creation_tokenfor Flatland views, but never both. If both are set, errorPresentViewError.INVALID_ARGSis returned. - error
PresentViewError.INVALID_ARGSifspec.view_holder_tokenorspec.view_refare missing or invalid.
Trait Implementations§
Source§impl Clone for GraphicalPresenterProxy
impl Clone for GraphicalPresenterProxy
Source§fn clone(&self) -> GraphicalPresenterProxy
fn clone(&self) -> GraphicalPresenterProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphicalPresenterProxy
impl Debug for GraphicalPresenterProxy
Source§impl GraphicalPresenterProxyInterface for GraphicalPresenterProxy
impl GraphicalPresenterProxyInterface for GraphicalPresenterProxy
type PresentViewResponseFut = QueryResponseFut<Result<(), PresentViewError>>
fn present_view( &self, view_spec: ViewSpec, annotation_controller: Option<ClientEnd<AnnotationControllerMarker>>, view_controller_request: Option<ServerEnd<ViewControllerMarker>>, ) -> Self::PresentViewResponseFut
Source§impl Proxy for GraphicalPresenterProxy
impl Proxy for GraphicalPresenterProxy
Source§type Protocol = GraphicalPresenterMarker
type Protocol = GraphicalPresenterMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for GraphicalPresenterProxy
impl !RefUnwindSafe for GraphicalPresenterProxy
impl Send for GraphicalPresenterProxy
impl Sync for GraphicalPresenterProxy
impl Unpin for GraphicalPresenterProxy
impl !UnwindSafe for GraphicalPresenterProxy
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.