pub struct ControllerProxy { /* private fields */ }
Implementations§
source§impl ControllerProxy
impl ControllerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.developer.tiles/Controller.
sourcepub fn take_event_stream(&self) -> ControllerEventStream
pub fn take_event_stream(&self) -> ControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn add_tile_from_url(
&self,
url: &str,
allow_focus: bool,
args: Option<&[String]>
) -> QueryResponseFut<u32>
pub fn add_tile_from_url( &self, url: &str, allow_focus: bool, args: Option<&[String]> ) -> QueryResponseFut<u32>
Instantiates a component by its URL and adds a tile backed by that component’s ViewProvider. Returns a key for the tile that can be used for resizing or removing the tile, or 0 on failure.
sourcepub fn add_tile_from_view_provider(
&self,
url: &str,
provider: ClientEnd<ViewProviderMarker>
) -> QueryResponseFut<u32>
pub fn add_tile_from_view_provider( &self, url: &str, provider: ClientEnd<ViewProviderMarker> ) -> QueryResponseFut<u32>
Adds a tile backed by a view from the view provider. Returns a key for the tile that can be used for resizing or removing the tile, or 0 on failure.
sourcepub fn remove_tile(&self, key: u32) -> Result<(), Error>
pub fn remove_tile(&self, key: u32) -> Result<(), Error>
Removes the tile with the given key.
Trait Implementations§
source§impl Clone for ControllerProxy
impl Clone for ControllerProxy
source§fn clone(&self) -> ControllerProxy
fn clone(&self) -> ControllerProxy
Returns a copy 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 ControllerProxyInterface for ControllerProxy
impl ControllerProxyInterface for ControllerProxy
type AddTileFromUrlResponseFut = QueryResponseFut<u32>
fn add_tile_from_url( &self, url: &str, allow_focus: bool, args: Option<&[String]> ) -> Self::AddTileFromUrlResponseFut
type AddTileFromViewProviderResponseFut = QueryResponseFut<u32>
fn add_tile_from_view_provider( &self, url: &str, provider: ClientEnd<ViewProviderMarker> ) -> Self::AddTileFromViewProviderResponseFut
fn remove_tile(&self, key: u32) -> Result<(), Error>
type ListTilesResponseFut = QueryResponseFut<(Vec<u32>, Vec<String>, Vec<Vec3>, Vec<bool>)>
fn list_tiles(&self) -> Self::ListTilesResponseFut
fn quit(&self) -> Result<(), Error>
source§impl Debug for ControllerProxy
impl Debug for ControllerProxy
source§impl Proxy for ControllerProxy
impl Proxy for ControllerProxy
§type Protocol = ControllerMarker
type Protocol = ControllerMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ControllerProxy
impl Send for ControllerProxy
impl Sync for ControllerProxy
impl Unpin for ControllerProxy
impl !UnwindSafe for ControllerProxy
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