Skip to main content

EcmascriptChunkItem

Trait EcmascriptChunkItem 

Source
pub trait EcmascriptChunkItem:
    ChunkItem
    + OutputAssetsReference
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn content_with_async_module_info<'life0, 'async_trait>(
        &'life0 self,
        async_module_info: Option<Vc<AsyncModuleInfo>>,
        estimated: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Vc<EcmascriptChunkItemContent>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn content_with_async_module_info<'life0, 'async_trait>( &'life0 self, async_module_info: Option<Vc<AsyncModuleInfo>>, estimated: bool, ) -> Pin<Box<dyn Future<Output = Result<Vc<EcmascriptChunkItemContent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetches the content of the chunk item with async module info. When estimated is true, it’s ok to provide an estimated content, since it’s only used for compute the chunking. When estimated is true, this function should not invoke other chunking operations that would cause cycles.

Trait Implementations§

Source§

impl TraitVtablePrototype for Box<dyn EcmascriptChunkItem>

Source§

const LEN: usize = 0usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn EcmascriptChunkItem>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated at program load by #[ctor::ctor] functions emitted by each #[turbo_tasks::value_impl] expansion. Read more
Source§

type ValueTrait = dyn EcmascriptChunkItem

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

impl Dynamic<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl UpcastStrict<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Available on debug-assertions enabled only.

Implementors§

Source§

impl<T> EcmascriptChunkItem for T
where T: Dynamic<Box<dyn EcmascriptChunkItem>> + ChunkItem + OutputAssetsReference + Send + Sync + NonLocalValue + ValueDebug,