pub struct NativeDylibLoader;Expand description
Loader for native dynamic libraries that expose the stable native lib ABI.
A native site export is registered as an opaque value under its placement
symbol. Calling that value invokes the guest’s <placement>/realize
operation; agent libraries adapt the value into an EvalSite.
Trait Implementations§
Source§impl LibLoader for NativeDylibLoader
Available on crate feature dynamic-native and non-WebAssembly only.
impl LibLoader for NativeDylibLoader
Available on crate feature
dynamic-native and non-WebAssembly only.Source§fn can_load(&self, source: &LibSource) -> bool
fn can_load(&self, source: &LibSource) -> bool
Reports whether this loader accepts the given source.
Source§fn load(&self, cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>, Error>
fn load(&self, cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>, Error>
Loads the source into a library object.
Source§fn inspect_manifest(
&self,
_cx: &mut Cx,
_source: &LibSource,
) -> Result<Option<LibManifest>, Error>
fn inspect_manifest( &self, _cx: &mut Cx, _source: &LibSource, ) -> Result<Option<LibManifest>, Error>
Inspects a source’s manifest without fully loading it; the default
returns
None (not supported).Auto Trait Implementations§
impl Freeze for NativeDylibLoader
impl RefUnwindSafe for NativeDylibLoader
impl Send for NativeDylibLoader
impl Sync for NativeDylibLoader
impl Unpin for NativeDylibLoader
impl UnsafeUnpin for NativeDylibLoader
impl UnwindSafe for NativeDylibLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more