Module distill_loader::handle[][src]

feature: handle. Handles provide automatic reference counting of assets, similar to Rc.

Structs

GenericHandle

Handle to an asset whose type is unknown during loading.

Handle

Handle to an asset.

HandleSerdeContextProvider

Register this context with AssetDaemon to add serde support for Handle.

SerdeContext

Used to make some limited Loader interactions available to serde Serialize/Deserialize implementations by using thread-local storage. Required to support Serialize/Deserialize of Handle.

WeakHandle

Handle to an asset that does not prevent the asset from being unloaded.

Enums

HandleRefType

Keeps track of whether a handle ref is a strong, weak or “internal” ref

RefOp

Operations on an asset reference.

Traits

AssetHandle

The contract of an asset handle.

TypedAssetStorage

Implementors of crate::storage::AssetStorage can implement this trait to enable convenience functions on the common AssetHandle trait, which is implemented by all handle types.

Functions

process_ref_ops