1pub mod access;
5
6use bee_storage::backend::StorageBackend;
7
8pub struct Storage;
9
10impl StorageBackend for Storage {
11 type ConfigBuilder = ();
12 type Config = ();
13 type Error = std::convert::Infallible;
14
15 fn start(_config: Self::Config) -> Result<Self, Self::Error> {
16 Ok(Storage)
17 }
18
19 fn shutdown(self) -> Result<(), Self::Error> {
20 Ok(())
21 }
22
23 fn size(&self) -> Result<Option<usize>, Self::Error> {
24 Ok(None)
25 }
26
27 fn get_health(&self) -> Result<Option<bee_storage::system::StorageHealth>, Self::Error> {
28 Ok(None)
29 }
30
31 fn set_health(&self, _health: bee_storage::system::StorageHealth) -> Result<(), Self::Error> {
32 Ok(())
33 }
34}