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]

Synchronize the Store by updating the resources that ought to.

Methods from Deref<Target = Storage>

[src]

The canonicalized root the Storage is configured with.

[src]

Get a resource from the Storage and return an error if 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.

Trait Implementations

impl Deref for Store
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Store
[src]

[src]

Mutably dereferences the value.