[][src]Struct deno::RecursiveLoad

pub struct RecursiveLoad<L: Loader> { /* fields omitted */ }

This future is used to implement parallel async module loading without complicating the Isolate API. TODO: RecursiveLoad desperately needs to be merged with Modules.

Methods

impl<L: Loader> RecursiveLoad<L>[src]

pub fn main(specifier: &str, loader: L, modules: Arc<Mutex<Modules>>) -> Self[src]

Starts a new parallel load of the given URL of the main module.

pub fn dynamic_import(
    id: i32,
    specifier: &str,
    referrer: &str,
    loader: L,
    modules: Arc<Mutex<Modules>>
) -> Self
[src]

pub fn dyn_import_id(&self) -> Option<i32>[src]

pub fn get_future(
    self,
    isolate: Arc<Mutex<Isolate>>
) -> impl Future<Item = deno_mod, Error = ErrBox>
[src]

Returns a future that resolves to the final module id of the root module. This future needs to take ownership of the isolate.

Trait Implementations

impl<L: Loader> ImportStream for RecursiveLoad<L>[src]

impl<L: Loader> Stream for RecursiveLoad<L>[src]

type Item = Event

The type of item this stream will yield on success.

type Error = ErrBox

The type of error this stream may generate.

Auto Trait Implementations

impl<L> Send for RecursiveLoad<L>

impl<L> Unpin for RecursiveLoad<L> where
    L: Unpin

impl<L> !Sync for RecursiveLoad<L>

impl<L> !UnwindSafe for RecursiveLoad<L>

impl<L> !RefUnwindSafe for RecursiveLoad<L>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]