matrix_sdk_base/event_cache/store/media/
mod.rs

1// Copyright 2025 Kévin Commaille
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Types and traits regarding media caching of the event cache store.
16
17mod media_retention_policy;
18mod media_service;
19#[cfg(any(test, feature = "testing"))]
20#[macro_use]
21pub mod integration_tests;
22
23#[cfg(any(test, feature = "testing"))]
24pub use self::integration_tests::EventCacheStoreMediaIntegrationTests;
25pub use self::{
26    media_retention_policy::MediaRetentionPolicy,
27    media_service::{EventCacheStoreMedia, IgnoreMediaRetentionPolicy, MediaService},
28};