1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
use crateFirestoreConsistencySelector;
use *;
/// Parameters that define the behavior of a Firestore session or a specific set of operations.
///
/// `FirestoreDbSessionParams` allow for configuring aspects like read consistency
/// (e.g., reading data as of a specific time) and caching behavior for operations
/// performed with a [`FirestoreDb`](crate::FirestoreDb) instance that is associated
/// with these parameters.
///
/// These parameters can be applied to a `FirestoreDb` instance using methods like
/// [`FirestoreDb::with_session_params()`](crate::FirestoreDb::with_session_params) or
/// [`FirestoreDb::clone_with_session_params()`](crate::FirestoreDb::clone_with_session_params).
/// ```
/// Defines the caching mode for Firestore operations within a session.
///
/// This enum is used in [`FirestoreDbSessionParams`] to control how and if
/// caching is utilized for read operations.
/// A type alias for a thread-safe, shareable Firestore cache backend.
///
/// This is an `Arc` (Atomically Reference Counted) pointer to a trait object
/// that implements [`FirestoreCacheBackend`](crate::FirestoreCacheBackend).
/// It allows multiple parts of the application or different `FirestoreDb` instances
/// to share the same underlying cache storage.
///
/// This type is only available if the `caching` feature is enabled.
pub type FirestoreSharedCacheBackend =
Arc;