Struct warmy::load::Store [] [src]

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

Resource store. Responsible for holding and presenting resources.

Methods

impl<C> Store<C>
[src]

[src]

Create a new store.

Failures

This function will fail if the root path in the StoreOpt doesn’t resolve to a correct canonicalized path.

[src]

Synchronize the Store by updating the resources that ought to with a provided context.

Methods from Deref<Target = Storage<C>>

[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

impl<C> Deref for Store<C>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<C> DerefMut for Store<C>
[src]

[src]

Mutably dereferences the value.

Auto Trait Implementations

impl<C> !Send for Store<C>

impl<C> !Sync for Store<C>