Modules§
- Rusty Object Notation
Macros§
- Creates a new
embeddedasset by embedding the bytes of the given path into the current binary and registering those bytes with theembeddedAssetSource. - Returns the
Pathfor a givenembeddedasset. This is used internally byembedded_assetand can be used to get aPaththat matches theAssetPathused by that asset. - Loads an “internal” asset by embedding the string stored in the given
path_strand associates it with the given handle. - Loads an “internal” binary asset by embedding the bytes stored in the given
path_strand associates it with the given handle.
Structs§
- Provides
HandleandUntypedHandlefor a specific asset type. This should only be used for one specific asset type. - An event emitted when a specific
Assetfails to load. - Represents a path to an asset in a “virtual filesystem”.
- Provides “asset” loading and processing functionality. An
Assetis a “runtime value” that is loaded from anAssetSource, which can be something like a filesystem, a network, etc. - Loads and tracks the state of
Assetvalues from a configuredAssetReader. This can be used to kick off new asset loads and retrieve their current load states. - A mutable iterator over
Assets. - A builder for directly loading nested assets inside a
LoadContext. - A “type erased / boxed” counterpart to
LoadedAsset. This is used in places where the loaded type is not statically known. - A context that provides access to assets in
AssetLoaders, tracks dependencies, and collects asset load state. Any asset state accessed byLoadContextwill be tracked and stored for use in dependency events and asset preprocessing. - An error that occurs when attempting to call [
LoadContext::load_direct] - The successful result of an
AssetLoader::loadcall. This contains the loaded “root” asset and any other “labeled” assets produced by the loader. It also holds the inputAssetMeta(if it exists) and tracks dependencies: - A “loaded folder” containing handles for all assets stored in a given
AssetPath. - A “loaded asset” containing the untyped handle for an asset stored in a given
AssetPath. - An error that occurs when an
AssetLoaderis not registered for a given extension. - An error that occurs when an
AssetLoaderis not registered for a givenstd::any::type_name. - A builder for loading nested assets inside a
LoadContext. - Type data for the
TypeRegistryused to operate on reflectedAssets. - Reflect type data struct relating a
Handle<T>back to theTasset type. - The internal “strong”
Assethandle storage forHandle::StrongandUntypedHandle::Strong. When this is dropped, theAssetwill be freed. It also stores some asset metadata for easy access from handles. - A system set that holds all “track asset” operations.
- An untyped version of
AssetLoadFailedEvent. - A builder for directly loading untyped nested assets inside a
LoadContext. - A builder for loading untyped nested assets inside a
LoadContext.
Enums§
- Events that occur for a specific loaded
Asset, such as “value changed” events and “dependency” events. - An error that occurs during an
Assetload. - Configures how / if meta files will be checked. If an asset’s meta file is not checked, the default meta for the asset will be used.
- The “asset mode” the server is currently in.
- The load state of an asset’s dependencies.
- An error that occurs while deserializing
AssetMeta. - A strong or weak handle to a specific
Asset. If aHandleisHandle::Strong, theAssetwill be kept alive until theHandleis dropped. If aHandleisHandle::Weak, it does not necessarily reference a liveAsset, nor will it keep assets alive. - The load state of an asset.
- An error that occurs when parsing a string type to create an
AssetPathfails, such as duringAssetPath::parseor [AssetPath::from<'static str>]. - An error produced when calling
LoadContext::read_asset_bytes - The recursive load state of an asset’s dependencies.
- Errors preventing the conversion of to/from an
UntypedHandleand aHandle. - Errors preventing the conversion of to/from an
UntypedAssetIdand anAssetId.
Traits§
- Adds asset-related builder methods to
App. - Loads an
Assetfrom a given byteReader. This can acceptAssetLoader::Settings, which configure how theAssetshould be loaded. - Extension trait for
AsyncRead. - Extension trait for
AsyncWrite. - Provides type-erased access to an
AssetLoader.
Functions§
- A system that manages internal
AssetServerevents, such as finalizing asset loads.