settings_storage/
lib.rs

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
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/// Allows controllers to store state in persistent device level storage.
pub mod device_storage;

/// Storage that interacts with persistent fidl.
pub mod fidl_storage;

/// Implements recording stash write failures to inspect.
pub mod stash_logger;

/// Exposes a factory struct and trait to generate storage.
pub mod storage_factory;

#[derive(PartialEq, Eq, Clone, Debug)]
/// Enum for describing whether writing affected persistent value.
pub enum UpdateState {
    Unchanged,
    Updated,
}

mod private {
    pub trait Sealed {}
}