[−][src]Struct deno_core::FsModuleLoader
Basic file system module loader.
Note that this loader will block event loop when loading file as it uses synchronous FS API from standard library.
Trait Implementations
impl ModuleLoader for FsModuleLoader
[src]
pub fn resolve(
&self,
_op_state: Rc<RefCell<OpState>>,
specifier: &str,
referrer: &str,
_is_main: bool
) -> Result<ModuleSpecifier, AnyError>
[src]
&self,
_op_state: Rc<RefCell<OpState>>,
specifier: &str,
referrer: &str,
_is_main: bool
) -> Result<ModuleSpecifier, AnyError>
pub fn load(
&self,
_op_state: Rc<RefCell<OpState>>,
module_specifier: &ModuleSpecifier,
_maybe_referrer: Option<ModuleSpecifier>,
_is_dynamic: bool
) -> Pin<Box<ModuleSourceFuture>>
[src]
&self,
_op_state: Rc<RefCell<OpState>>,
module_specifier: &ModuleSpecifier,
_maybe_referrer: Option<ModuleSpecifier>,
_is_dynamic: bool
) -> Pin<Box<ModuleSourceFuture>>
pub fn prepare_load(
&self,
_op_state: Rc<RefCell<OpState>>,
_load_id: ModuleLoadId,
_module_specifier: &ModuleSpecifier,
_maybe_referrer: Option<String>,
_is_dyn_import: bool
) -> Pin<Box<dyn Future<Output = Result<(), AnyError>>>>
[src]
&self,
_op_state: Rc<RefCell<OpState>>,
_load_id: ModuleLoadId,
_module_specifier: &ModuleSpecifier,
_maybe_referrer: Option<String>,
_is_dyn_import: bool
) -> Pin<Box<dyn Future<Output = Result<(), AnyError>>>>
Auto Trait Implementations
impl RefUnwindSafe for FsModuleLoader
[src]
impl Send for FsModuleLoader
[src]
impl Sync for FsModuleLoader
[src]
impl Unpin for FsModuleLoader
[src]
impl UnwindSafe for FsModuleLoader
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,