Struct marine::ModuleDescriptor
source · [−]pub struct ModuleDescriptor {
pub load_from: Option<PathBuf>,
pub file_name: String,
pub import_name: String,
pub config: MarineModuleConfig,
}
Expand description
Info to load a module from filesystem into runtime.
Fields
load_from: Option<PathBuf>
file_name: String
import_name: String
config: MarineModuleConfig
Implementations
Trait Implementations
sourceimpl Default for ModuleDescriptor
impl Default for ModuleDescriptor
sourcefn default() -> ModuleDescriptor
fn default() -> ModuleDescriptor
Returns the “default value” for a type. Read more
sourceimpl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
impl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
sourcefn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<Self, Self::Error>
fn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ModuleDescriptor
impl !Send for ModuleDescriptor
impl !Sync for ModuleDescriptor
impl Unpin for ModuleDescriptor
impl !UnwindSafe for ModuleDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more