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§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.