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§
Sourcefn 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,
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>
impl TraitVtablePrototype for Box<dyn EcmascriptChunkItem>
Source§impl VcValueTrait for Box<dyn EcmascriptChunkItem>
impl VcValueTrait for Box<dyn EcmascriptChunkItem>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
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 moretype ValueTrait = dyn EcmascriptChunkItem
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>
impl Dynamic<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>
impl Dynamic<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>
impl Upcast<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>
impl Upcast<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>
impl UpcastStrict<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>
Available on debug-assertions enabled only.