pub struct LauncherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LauncherSynchronousProxy
impl LauncherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LauncherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LauncherEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn explore_component_over_pty(
&self,
moniker: &str,
pty: ClientEnd<DeviceMarker>,
tool_urls: &[String],
command: Option<&str>,
ns_layout: DashNamespaceLayout,
___deadline: MonotonicInstant,
) -> Result<LauncherExploreComponentOverPtyResult, Error>
pub fn explore_component_over_pty( &self, moniker: &str, pty: ClientEnd<DeviceMarker>, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ___deadline: MonotonicInstant, ) -> Result<LauncherExploreComponentOverPtyResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<LauncherExploreComponentOverSocketResult, Error>
pub fn explore_component_over_socket( &self, moniker: &str, socket: Socket, tool_urls: &[String], command: Option<&str>, ns_layout: DashNamespaceLayout, ___deadline: MonotonicInstant, ) -> Result<LauncherExploreComponentOverSocketResult, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<LauncherExplorePackageOverSocketResult, Error>
pub fn explore_package_over_socket( &self, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ___deadline: MonotonicInstant, ) -> Result<LauncherExplorePackageOverSocketResult, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<LauncherExplorePackageOverSocket2Result, Error>
pub fn explore_package_over_socket2( &self, fuchsia_pkg_resolver: FuchsiaPkgResolver, url: &str, subpackages: &[String], socket: Socket, tool_urls: &[String], command: Option<&str>, ___deadline: MonotonicInstant, ) -> Result<LauncherExplorePackageOverSocket2Result, Error>
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 Debug for LauncherSynchronousProxy
impl Debug for LauncherSynchronousProxy
Source§impl SynchronousProxy for LauncherSynchronousProxy
impl SynchronousProxy for LauncherSynchronousProxy
Source§type Proxy = LauncherProxy
type Proxy = LauncherProxy
Source§type Protocol = LauncherMarker
type Protocol = LauncherMarker
Proxy
controls.