Struct fidl_fuchsia_dash::LauncherProxy
source · 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>
pub fn explore_component_over_pty( &self, moniker: &str, pty: ClientEnd<DeviceMarker>, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout ) -> QueryResponseFut<LauncherExploreComponentOverPtyResult>
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>
pub fn explore_component_over_socket( &self, moniker: &str, socket: Socket, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout ) -> QueryResponseFut<LauncherExploreComponentOverSocketResult>
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>
pub fn explore_package_over_socket( &self, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str> ) -> QueryResponseFut<LauncherExplorePackageOverSocketResult>
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>
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>
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>>
fn explore_component_over_pty( &self, moniker: &str, pty: ClientEnd<DeviceMarker>, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout ) -> Self::ExploreComponentOverPtyResponseFut
type ExploreComponentOverSocketResponseFut = QueryResponseFut<Result<(), LauncherError>>
fn explore_component_over_socket( &self, moniker: &str, socket: Socket, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout ) -> Self::ExploreComponentOverSocketResponseFut
type ExplorePackageOverSocketResponseFut = QueryResponseFut<Result<(), LauncherError>>
fn explore_package_over_socket( &self, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str> ) -> Self::ExplorePackageOverSocketResponseFut
type ExplorePackageOverSocket2ResponseFut = QueryResponseFut<Result<(), LauncherError>>
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
§type Protocol = LauncherMarker
type Protocol = LauncherMarker
Proxy
controls.