pub trait DenoRtNativeAddonLoader: Send + Sync {
// Required method
fn load_if_in_vfs(&self, path: &Path) -> Option<Cow<'static, [u8]>>;
// Provided method
fn load_and_resolve_path<'a>(
&self,
path: &'a Path,
) -> Result<Cow<'a, Path>, LoadError> { ... }
}Expand description
Loads native addons in deno compile.
The implementation should provide the bytes from the binary of the native file.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".