Module store

Source
Expand description

The media store holds downloaded media when the cache was activated to save bandwidth at the cost of increased storage space usage.

Implementing the MediaStore trait, you can plug any storage backend into the media store for the actual storage. By default this brings an in-memory store.

Re-exports§

pub use self::integration_tests::MediaStoreInnerIntegrationTests;testing
pub use self::integration_tests::MediaStoreIntegrationTests;testing

Modules§

integration_teststesting
Trait and macro of integration tests for MediaStoreInner implementations.

Structs§

MediaRetentionPolicy
The retention policy for media content used by the MediaStore.
MediaService
API for implementors of MediaStore to manage their media through their implementation of MediaStoreInner.
MediaStoreLock
The high-level public type to represent an MediaStore lock.
MediaStoreLockGuard
An RAII implementation of a “scoped lock” of an MediaStoreLock. When this structure is dropped (falls out of scope), the lock will be unlocked.
MemoryMediaStore
In-memory, non-persistent implementation of the MediaStore.

Enums§

IgnoreMediaRetentionPolicy
Whether the MediaRetentionPolicy should be ignored for the current content.
MediaStoreError
Media store specific error type.

Traits§

IntoMediaStore
A type that can be type-erased into Arc<dyn MediaStore>.
MediaStore
An abstract trait that can be used to implement different store backends for the media of the SDK.
MediaStoreInner
An abstract trait that can be used to implement different store backends for the media cache of the SDK.

Type Aliases§

DynMediaStore
A type-erased MediaStore.
Result
An MediaStore specific result type.