Struct warmy::Store [] [src]

pub struct Store { /* fields omitted */ }

Resource store. Responsible for holding and presenting resources.

Methods

impl Store
[src]

[src]

Create a new store.

The root represents the root directory from all the resources come from and is relative to the binary’s location by default (unless you specify it as absolute).

[src]

The canonicalized root the Store is configured with.

[src]

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

[src]

Get a resource from the store 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.

[src]

Synchronize the store by updating the resources that ought to.