logo
pub struct Store<C, K> { /* private fields */ }
Expand description

Resource store. Responsible for holding and presenting resources.

Implementations

Create a new store.

Failures

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

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

Methods from Deref<Target = Storage<C, K>>

The canonicalized root the Storage is configured with.

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

This function uses the default loading method.

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

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.

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

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.