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.
Modules§
- integration_
tests - Trait and macro of integration tests for
MediaStoreInner
implementations.
Structs§
- Media
Retention Policy - The retention policy for media content used by the [
MediaStore
]. - Media
Service - API for implementors of
MediaStore
to manage their media through their implementation ofMediaStoreInner
. - Media
Store Lock - The high-level public type to represent an
MediaStore
lock. - Media
Store Lock Guard - An RAII implementation of a “scoped lock” of an
MediaStoreLock
. When this structure is dropped (falls out of scope), the lock will be unlocked. - Memory
Media Store - In-memory, non-persistent implementation of the
MediaStore
.
Enums§
- Ignore
Media Retention Policy - Whether the
MediaRetentionPolicy
should be ignored for the current content. - Media
Store Error - Media store specific error type.
Traits§
- Into
Media Store - A type that can be type-erased into
Arc<dyn MediaStore>
. - Media
Store - An abstract trait that can be used to implement different store backends for the media of the SDK.
- Media
Store Inner - An abstract trait that can be used to implement different store backends for the media cache of the SDK.
- Media
Store Inner Integration Tests MediaStoreInner
integration tests.- Media
Store Integration Tests MediaStore
integration tests.
Type Aliases§
- DynMedia
Store - A type-erased
MediaStore
. - Result
- An
MediaStore
specific result type.