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]
]. - A wrapper that stores a future in space allocated by the container
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.
Constants§
- The maximum size of a future returned from
Reader::read_to_end
. This is large enough to fit ten references.
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 future that returns a value or an
AssetReaderError
- 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. - Asynchronously advances the cursor position by a specified number of bytes.
- Extension trait for
AsyncSeekForward
. - 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. - A type returned from
AssetReader::read
, which is used to read the contents of a file (or virtual file) corresponding to an asset.