Modules§
- file
Non-WebAssembly
Structs§
- A collection of unprocessed and processed
AssetReader
,AssetWriter
, andAssetWatcher
instances for a specific asset source, identified by anAssetSourceId
. - Metadata about an “asset source”, such as how to construct the
AssetReader
andAssetWriter
for the source, and whether or not the source is processed. - A
Resource
that hold (repeatable) functions capable of producing newAssetReader
andAssetWriter
instances for a given asset source. - A collection of
AssetSource
s. - An error returned when an
AssetSource
does not exist for a given id. - An error returned when an
AssetWriter
does not exist for a given id. - An error returned when a processed
AssetReader
does not exist for a given id. - An error returned when a processed
AssetWriter
does not exist for a given id. - An
AsyncRead
implementation capable of reading a [&[u8]
].
Enums§
- Errors that occur while loading assets.
- An “asset source change event” that occurs whenever asset (or asset metadata) is created/added/removed
- A reference to an “asset source”, which maps to an
AssetReader
and/orAssetWriter
. - Errors that occur while loading assets.
Traits§
- Performs read operations on an asset storage.
AssetReader
exposes a “virtual filesystem” API, where asset bytes and asset metadata bytes are both stored and accessible for a givenpath
. This trait is not object safe, if needed use a dynErasedAssetReader
instead. - A handle to an “asset watcher” process, that will listen for and emit
AssetSourceEvent
values for as long asAssetWatcher
has not been dropped. - Preforms write operations on an asset storage.
AssetWriter
exposes a “virtual filesystem” API, where asset bytes and asset metadata bytes are both stored and accessible for a givenpath
. This trait is not object safe, if needed use a dynErasedAssetWriter
instead. - Extension trait for
AsyncRead
. - Extension trait for
AsyncWrite
. - Equivalent to an
AssetReader
but using boxed futures, necessary eg. when using adyn AssetReader
, asAssetReader
isn’t currently object safe. - Equivalent to an
AssetWriter
but using boxed futures, necessary eg. when using adyn AssetWriter
, asAssetWriter
isn’t currently object safe.