pub struct LauncherProxy { /* private fields */ }
Implementations§
Source§impl LauncherProxy
impl LauncherProxy
Sourcepub fn take_event_stream(&self) -> LauncherEventStream
pub fn take_event_stream(&self) -> LauncherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn explore_component_over_pty(
&self,
moniker: &str,
pty: ClientEnd<DeviceMarker>,
tool_urls: &[String],
command: Option<&str>,
ns_layout: DashNamespaceLayout,
) -> QueryResponseFut<LauncherExploreComponentOverPtyResult, DefaultFuchsiaResourceDialect>
pub fn explore_component_over_pty( &self, moniker: &str, pty: ClientEnd<DeviceMarker>, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ) -> QueryResponseFut<LauncherExploreComponentOverPtyResult, DefaultFuchsiaResourceDialect>
Launch a dash process scoped to the component with the given moniker, forwarding the given stdio PTY.
Sourcepub fn explore_component_over_socket(
&self,
moniker: &str,
socket: Socket,
tool_urls: &[String],
command: Option<&str>,
ns_layout: DashNamespaceLayout,
) -> QueryResponseFut<LauncherExploreComponentOverSocketResult, DefaultFuchsiaResourceDialect>
pub fn explore_component_over_socket( &self, moniker: &str, socket: Socket, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ) -> QueryResponseFut<LauncherExploreComponentOverSocketResult, DefaultFuchsiaResourceDialect>
Launch a dash process scoped to the component with the given moniker, forwarding the given stdio socket.
The dash launcher will implicitly create a PTY and transfer bytes between the PTY and the socket.
Sourcepub fn explore_package_over_socket(
&self,
url: &str,
subpackages: &[String],
socket: Socket,
tool_urls: &[String],
command: Option<&str>,
) -> QueryResponseFut<LauncherExplorePackageOverSocketResult, DefaultFuchsiaResourceDialect>
pub fn explore_package_over_socket( &self, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ) -> QueryResponseFut<LauncherExplorePackageOverSocketResult, DefaultFuchsiaResourceDialect>
Launch a dash process with the indicated [sub]package loaded into the namespace at /pkg, forwarding the given stdio socket.
The dash launcher will implicitly create a PTY and transfer bytes between the PTY and the socket.
Always uses [fuchsia.dash/FuchsiaPkgResolver.FULL
] to resolve package URLs with scheme
“fuchsia-pkg”.
Use [fuchsia.dash/Launcher.ExplorePackageOverSocket2
] instead to pick which resolver to
use with “fuchsia-pkg” URLs.
Sourcepub fn explore_package_over_socket2(
&self,
fuchsia_pkg_resolver: FuchsiaPkgResolver,
url: &str,
subpackages: &[String],
socket: Socket,
tool_urls: &[String],
command: Option<&str>,
) -> QueryResponseFut<LauncherExplorePackageOverSocket2Result, DefaultFuchsiaResourceDialect>
pub fn explore_package_over_socket2( &self, fuchsia_pkg_resolver: FuchsiaPkgResolver, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ) -> QueryResponseFut<LauncherExplorePackageOverSocket2Result, DefaultFuchsiaResourceDialect>
Launch a dash process with the indicated [sub]package loaded into the namespace at /pkg, forwarding the given stdio socket.
The dash launcher will implicitly create a PTY and transfer bytes between the PTY and the socket.
Trait Implementations§
Source§impl Clone for LauncherProxy
impl Clone for LauncherProxy
Source§fn clone(&self) -> LauncherProxy
fn clone(&self) -> LauncherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LauncherProxy
impl Debug for LauncherProxy
Source§impl LauncherProxyInterface for LauncherProxy
impl LauncherProxyInterface for LauncherProxy
type ExploreComponentOverPtyResponseFut = QueryResponseFut<Result<(), LauncherError>>
type ExploreComponentOverSocketResponseFut = QueryResponseFut<Result<(), LauncherError>>
type ExplorePackageOverSocketResponseFut = QueryResponseFut<Result<(), LauncherError>>
type ExplorePackageOverSocket2ResponseFut = QueryResponseFut<Result<(), LauncherError>>
fn explore_component_over_pty( &self, moniker: &str, pty: ClientEnd<DeviceMarker>, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ) -> Self::ExploreComponentOverPtyResponseFut
fn explore_component_over_socket( &self, moniker: &str, socket: Socket, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ) -> Self::ExploreComponentOverSocketResponseFut
fn explore_package_over_socket( &self, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ) -> Self::ExplorePackageOverSocketResponseFut
fn explore_package_over_socket2( &self, fuchsia_pkg_resolver: FuchsiaPkgResolver, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ) -> Self::ExplorePackageOverSocket2ResponseFut
Source§impl Proxy for LauncherProxy
impl Proxy for LauncherProxy
Source§type Protocol = LauncherMarker
type Protocol = LauncherMarker
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 LauncherProxy
impl !RefUnwindSafe for LauncherProxy
impl Send for LauncherProxy
impl Sync for LauncherProxy
impl Unpin for LauncherProxy
impl !UnwindSafe for LauncherProxy
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
)