pub trait OutputAsset:
Asset
+ OutputAssetsReference
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn path(self: Vc<Self>) -> Vc<FileSystemPath>
where Self: Sized;
// Provided method
fn path_string(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized { ... }
}Expand description
An asset that should be outputted, e. g. written to disk or served from a server.
For documentation about where this is used and how it fits into the rest of Turbopack, see
crate::_layers.
Required Methods§
Sourcefn path(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
fn path(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
The identifier of the OutputAsset. It’s expected to be unique and capture all properties of the OutputAsset.
Provided Methods§
Sourcefn path_string(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
fn path_string(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
The identifier of the OutputAsset as string. It’s expected to be unique and capture all properties of the OutputAsset.
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn OutputAsset>
impl TraitVtablePrototype for Box<dyn OutputAsset>
Source§impl VcValueTrait for Box<dyn OutputAsset>
impl VcValueTrait for Box<dyn OutputAsset>
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 OutputAsset
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 Asset>> for Box<dyn OutputAsset>
impl Dynamic<Box<dyn OutputAsset>> for Box<dyn OutputAsset>
impl Dynamic<Box<dyn OutputAssetsReference>> for Box<dyn OutputAsset>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn OutputAsset>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn Asset>> for Box<dyn OutputAsset>
impl Upcast<Box<dyn OutputAsset>> for Box<dyn OutputAsset>
impl Upcast<Box<dyn OutputAssetsReference>> for Box<dyn OutputAsset>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn OutputAsset>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn Asset>> for Box<dyn OutputAsset>
impl UpcastStrict<Box<dyn OutputAssetsReference>> for Box<dyn OutputAsset>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn OutputAsset>
Available on debug-assertions enabled only.