Modules§
Structs§
- A collection of unprocessed and processed
AssetReader,AssetWriter, andAssetWatcherinstances for a specific asset source, identified by anAssetSourceId. - Metadata about an “asset source”, such as how to construct the
AssetReaderandAssetWriterfor the source, and whether or not the source is processed. - A
Resourcethat hold (repeatable) functions capable of producing newAssetReaderandAssetWriterinstances for a given asset source. - A collection of
AssetSources. - An error returned when an
AssetSourcedoes not exist for a given id. - An error returned when an
AssetWriterdoes not exist for a given id. - An error returned when a processed
AssetReaderdoes not exist for a given id. - An error returned when a processed
AssetWriterdoes not exist for a given id. - An
AsyncReadimplementation 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
AssetReaderand/orAssetWriter. - Errors that occur while loading assets.
Traits§
- Performs read operations on an asset storage.
AssetReaderexposes 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 dynErasedAssetReaderinstead. - A handle to an “asset watcher” process, that will listen for and emit
AssetSourceEventvalues for as long asAssetWatcherhas not been dropped. - Preforms write operations on an asset storage.
AssetWriterexposes 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 dynErasedAssetWriterinstead. - Extension trait for
AsyncRead. - Extension trait for
AsyncWrite. - Equivalent to an
AssetReaderbut using boxed futures, necessary eg. when using adyn AssetReader, asAssetReaderisn’t currently object safe. - Equivalent to an
AssetWriterbut using boxed futures, necessary eg. when using adyn AssetWriter, asAssetWriterisn’t currently object safe.