pub struct ResolvedModule {
pub name: String,
pub path: PathBuf,
pub config: Table,
}Expand description
One module to load: a name, a library file that already exists, and the configuration the app declared for it.
Resolution happened before this: where the file came from (a path in the app, the plugin cache, a bundle) is the caller’s business, and the loader only opens what it is given.
Fields§
§name: StringThe name the app declared. The library must report the same one.
path: PathBufThe library file to open.
config: TableThe module’s own configuration, passed through untouched.
Trait Implementations§
Source§impl Clone for ResolvedModule
impl Clone for ResolvedModule
Source§fn clone(&self) -> ResolvedModule
fn clone(&self) -> ResolvedModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedModule
impl RefUnwindSafe for ResolvedModule
impl Send for ResolvedModule
impl Sync for ResolvedModule
impl Unpin for ResolvedModule
impl UnsafeUnpin for ResolvedModule
impl UnwindSafe for ResolvedModule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.