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.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)