pub trait IntrospectorClientSender {
type Transport: Transport;
// Required method
fn get_moniker<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, GetMoniker>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireIntrospectorGetMonikerRequest>;
}
Expand description
A helper trait for the Introspector
client sender.
Required Associated Types§
Required Methods§
Sourcefn get_moniker<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, GetMoniker>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireIntrospectorGetMonikerRequest>,
fn get_moniker<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, GetMoniker>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireIntrospectorGetMonikerRequest>,
Obtains the moniker relative to this realm of the component
corresponding to the provided token. Runners may obtain the token via
fuchsia.component.runner/ComponentStartInfo.component_instance
.
Returns Error.INSTANCE_NOT_FOUND
if the token is invalid, or
does not correspond to a component under this realm.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<___T> IntrospectorClientSender for ClientSender<___T, Introspector>where
___T: Transport,
impl<___T> IntrospectorClientSender for ClientSender<___T, Introspector>where
___T: Transport,
Source§fn get_moniker<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, GetMoniker>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireIntrospectorGetMonikerRequest>,
fn get_moniker<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, GetMoniker>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireIntrospectorGetMonikerRequest>,
Obtains the moniker relative to this realm of the component
corresponding to the provided token. Runners may obtain the token via
fuchsia.component.runner/ComponentStartInfo.component_instance
.
Returns Error.INSTANCE_NOT_FOUND
if the token is invalid, or
does not correspond to a component under this realm.