reflex/lifecycle/types.rs
1#[derive(Debug, Clone)]
2/// Result of a hydration attempt.
3pub enum HydrationResult {
4 /// Download succeeded.
5 Success {
6 /// Downloaded size in bytes.
7 bytes: u64,
8 },
9 /// Snapshot was not found.
10 NotFound,
11 /// Skipped (disabled or not configured).
12 Skipped {
13 /// Reason for skipping.
14 reason: String,
15 },
16}
17
18#[derive(Debug, Clone)]
19/// Result of a dehydration attempt.
20pub enum DehydrationResult {
21 /// Upload succeeded.
22 Success {
23 /// Uploaded size in bytes.
24 bytes: u64,
25 },
26 /// No local snapshot to upload.
27 NoSnapshot,
28 /// Skipped (disabled or not configured).
29 Skipped {
30 /// Reason for skipping.
31 reason: String,
32 },
33}