pub trait OutputAsset:
Asset
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn path(self: Vc<Self>) -> Vc<FileSystemPath>
where Self: Sized;
// Provided methods
fn references(self: Vc<Self>) -> Vc<OutputAssets>
where Self: Sized { ... }
fn size_bytes(self: Vc<Self>) -> Vc<Option<u64>>
where Self: Sized { ... }
}
Expand description
An asset that should be outputted, e. g. written to disk or served from a server.
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 references(self: Vc<Self>) -> Vc<OutputAssets>where
Self: Sized,
fn references(self: Vc<Self>) -> Vc<OutputAssets>where
Self: Sized,
Other references OutputAssets from this OutputAsset.