Struct warmy::load::Storage [] [src]

pub struct Storage<C> { /* fields omitted */ }

Resource storage.

This type is responsible for storing resources, giving functions to look them up and update them whenever needed.

Methods

impl<C> Storage<C>
[src]

[src]

The canonicalized root the Storage is configured with.

[src]

Get a resource from the Storage and return an error if its loading failed.

This function uses the default loading method.

[src]

Get a resource from the Storage by using a specific method and return and error if its loading failed.

[src]

Get a resource from the Storage for the given key. If it fails, a proxied version is used, which will get replaced by the resource once it’s available and reloaded.

This function uses the default loading method.

[src]

Get a resource from the Storage for the given key by using a specific method. If it fails, a proxied version is used, which will get replaced by the resource once it’s available and reloaded.

Trait Implementations

Auto Trait Implementations

impl<C> !Send for Storage<C>

impl<C> !Sync for Storage<C>