pub trait ResolverClientSender {
type Transport: Transport;
// Required methods
fn resolve<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, Resolve>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveRequest>;
fn resolve_with_context<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, ResolveWithContext>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveWithContextRequest>;
}
Expand description
A helper trait for the Resolver
client sender.
Required Associated Types§
Required Methods§
Sourcefn resolve<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, Resolve>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveRequest>,
fn resolve<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, Resolve>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveRequest>,
Resolves a component with the given absolute URL.
component_url
is the unescaped URL of the component to resolve.
If successful, returns information about the component that was resolved.
On failure, returns a ResolverError
error.
Sourcefn resolve_with_context<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, ResolveWithContext>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveWithContextRequest>,
fn resolve_with_context<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, ResolveWithContext>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveWithContextRequest>,
Resolves a component with the absolute or relative URL. If relative, the
component will be resolved relative to the supplied context
.
component_url
is the unescaped URL of the component to resolve, the
format of which can be either:
- a fully-qualified absolute component URL; or
- a subpackaged-component reference, prefixed by a URI relative
path to its containing subpackage (for example,
child_package#meta/some_component.cm
)
context
is the resolution_context
of a previously-resolved
Component
, providing the context for resoving a relative URL.
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> ResolverClientSender for ClientSender<___T, Resolver>where
___T: Transport,
impl<___T> ResolverClientSender for ClientSender<___T, Resolver>where
___T: Transport,
Source§fn resolve<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, Resolve>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveRequest>,
fn resolve<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, Resolve>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveRequest>,
Resolves a component with the given absolute URL.
component_url
is the unescaped URL of the component to resolve.
If successful, returns information about the component that was resolved.
On failure, returns a ResolverError
error.
Source§fn resolve_with_context<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, ResolveWithContext>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveWithContextRequest>,
fn resolve_with_context<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, ResolveWithContext>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireResolverResolveWithContextRequest>,
Resolves a component with the absolute or relative URL. If relative, the
component will be resolved relative to the supplied context
.
component_url
is the unescaped URL of the component to resolve, the
format of which can be either:
- a fully-qualified absolute component URL; or
- a subpackaged-component reference, prefixed by a URI relative
path to its containing subpackage (for example,
child_package#meta/some_component.cm
)
context
is the resolution_context
of a previously-resolved
Component
, providing the context for resoving a relative URL.