pub trait PluginProvider: Send + Sync {
type Error: StdError + Send + Sync + 'static;
// Required method
fn resolve(
&self,
root: &SelectedCapabilityRoot,
) -> impl Future<Output = Result<Option<ResolvedPlugin>, Self::Error>> + Send;
}Expand description
Resolves source-owned package roots into inert plugin descriptors.
Implementations must perform all filesystem access through the authority
named by the selected root. None means the root contains no plugin
manifest and may be handled as another standalone capability.
Required Associated Types§
Required Methods§
Sourcefn resolve(
&self,
root: &SelectedCapabilityRoot,
) -> impl Future<Output = Result<Option<ResolvedPlugin>, Self::Error>> + Send
fn resolve( &self, root: &SelectedCapabilityRoot, ) -> impl Future<Output = Result<Option<ResolvedPlugin>, Self::Error>> + Send
Resolves one selected root without activating any of its components.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".