pub struct ProviderProxy { /* private fields */ }
Implementations§
Source§impl ProviderProxy
impl ProviderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.accessibility.scene/Provider.
Sourcepub fn take_event_stream(&self) -> ProviderEventStream
pub fn take_event_stream(&self) -> ProviderEventStream
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(
&self,
a11y_view_token: ViewCreationToken,
proxy_viewport_token: ViewportCreationToken,
) -> Result<(), Error>
pub fn create_view( &self, a11y_view_token: ViewCreationToken, proxy_viewport_token: ViewportCreationToken, ) -> Result<(), Error>
Prompts the server (a11y manager) to create a new accessibility View
,
which the client (scene manager) must connect to the root of the scene
graph.
The accessibility view is used to vend capabilities to a11y manager that a view confers, e.g. ability to request focus, consume and respond to input events, annotate underlying views, and apply coordinate transforms to its subtree.
With the a11y view, the scene topology is roughly:
scene root (owned by scene manager)
|
a11y viewport (owned by scene manager)
|
a11y view (owned by a11y manager)
|
proxy viewport (owned by a11y manager)
|
proxy view (owned by scene manager)
|
client viewport (owned by scene manager)
|
client view (owned by UI client)
ARGS
a11y_view_token: Token generated by scene manager, which a11y manager uses to create the a11y view in its flatland instance.
proxy_viewport_token: Token generated by scene manager, which a11y manager uses to create a “proxy viewport” within the a11y view. The client must subsequently create a “proxy view” using the corresponding view creation token it generated.
SYNCHRONIZATION
Callers may safely proceed once the accessibility ViewRef
is returned
to the accessibility ViewPort
holder.
LIFECYCLE
The client is free to close the channel any time after calling CreateView().
EPITAPH
This method may return the following epitaphs:
- ZX_ERR_INVALID_ARGS, if either of the provided tokens is invalid.
- ZX_ERR_PEER_CLOSED, if Scenic fails creating the accessibility
Viewport
.
Trait Implementations§
Source§impl Clone for ProviderProxy
impl Clone for ProviderProxy
Source§fn clone(&self) -> ProviderProxy
fn clone(&self) -> ProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProviderProxy
impl Debug for ProviderProxy
Source§impl ProviderProxyInterface for ProviderProxy
impl ProviderProxyInterface for ProviderProxy
fn create_view( &self, a11y_view_token: ViewCreationToken, proxy_viewport_token: ViewportCreationToken, ) -> Result<(), Error>
Source§impl Proxy for ProviderProxy
impl Proxy for ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
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 ProviderProxy
impl !RefUnwindSafe for ProviderProxy
impl Send for ProviderProxy
impl Sync for ProviderProxy
impl Unpin for ProviderProxy
impl !UnwindSafe for ProviderProxy
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
)