pub struct HostLoader;Expand description
Loader for libs supplied directly as in-process host objects.
Trait Implementations§
Source§impl Default for HostLoader
impl Default for HostLoader
Source§fn default() -> HostLoader
fn default() -> HostLoader
Returns the “default value” for a type. Read more
Source§impl LibLoader for HostLoader
impl LibLoader for HostLoader
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>>
fn load(&self, _cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>>
Loads the source into a library object.
Source§fn inspect_manifest(
&self,
_cx: &mut Cx,
source: &LibSource,
) -> Result<Option<LibManifest>>
fn inspect_manifest( &self, _cx: &mut Cx, source: &LibSource, ) -> Result<Option<LibManifest>>
Inspects a source’s manifest without fully loading it; the default
returns
None (not supported).Auto Trait Implementations§
impl Freeze for HostLoader
impl RefUnwindSafe for HostLoader
impl Send for HostLoader
impl Sync for HostLoader
impl Unpin for HostLoader
impl UnsafeUnpin for HostLoader
impl UnwindSafe for HostLoader
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more