# FallbackStorageProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/storage/struct-fallbackstorageprovider/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct FallbackStorageProvider
```

A storage provider that forwards each request to the first of a list of
lazily created providers that can serve it.

This is an implementation detail of the platform backends.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/fallback_storage_provider.rs#L74)

## Members

- [`new`](#function-new)
- [`reset`](#function-reset)

<a id="function-new"></a>

### new

```rust
fn new(factories: Vec<StorageProviderFactory>) -> Self
```

Creates a provider over the given factories, which are tried in
order and at most once each.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/fallback_storage_provider.rs#L81)

<a id="function-reset"></a>

### reset

```rust
fn reset(self: &Self, factories: Vec<StorageProviderFactory>)
```

Replaces the factories and forgets the providers created so far.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/fallback_storage_provider.rs#L92)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IStorageProvider`](/docs/0.5.0/api/ferroui-base/platform/storage/trait-istorageprovider/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
