pub trait ComponentResolver {
// Required method
fn resolve(
&self,
component: &ComponentId,
) -> Result<Vec<u8>, ComponentResolveError>;
}Expand description
Synchronous resolver contract for indirect DJVM components.
The resolver is called once for every DIRM entry, including pages, shared
components, and thumbnails. The typed ComponentId keeps the component
identity and its DIRM classification together so sync, async, and mutable
adapters can share the same vocabulary as they are added.
Required Methods§
Sourcefn resolve(
&self,
component: &ComponentId,
) -> Result<Vec<u8>, ComponentResolveError>
fn resolve( &self, component: &ComponentId, ) -> Result<Vec<u8>, ComponentResolveError>
Return the complete IFF bytes for one external component.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".