pub trait DeferredToolResolver: Send + Sync {
// Required method
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
paths: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Resolution>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn install_recorded_grant(&self, _path: &str, _grant: &ToolGrant) { ... }
}Expand description
RLM-only, host-provided resolution of Lashlang call-paths absent from the link-time host environment. The resolver resolves on demand only.
Required Methods§
Sourcefn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
paths: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Resolution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
paths: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Resolution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve a deterministic batch of fully-qualified Lashlang call-paths
(e.g. web.fetch). The batch contains only paths not already provided
by the host environment or recorded for this link.
Resolution is non-transactional: every returned path has its own
outcome, partial success is normal, and an input path omitted from the
returned map is recorded as Resolution::NotAvailable. Entries for
paths outside the input batch are ignored.
Provided Methods§
Sourcefn install_recorded_grant(&self, _path: &str, _grant: &ToolGrant)
fn install_recorded_grant(&self, _path: &str, _grant: &ToolGrant)
Reinstall the process-local execution route for a recorded grant before it is folded into a re-driven link. This is replay rehydration only: it must not make an authorization decision or widen the recorded grant.
Hosts whose grants need no process-local routing can use this default no-op implementation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".