File size: 577 Bytes
224e773
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod environment;
pub mod seed_chain;
pub mod inode;
pub mod shared_memory;

pub use environment::EnvironmentBitmask;
pub use seed_chain::SeedChain;
pub use shared_memory::SharedMemory;

pub trait ContinuityEngine {
    fn init(&mut self) -> hyperkitty_core::Result<()>;
    fn store(&mut self, key: &str, value: &[u8]) -> hyperkitty_core::Result<()>;
    fn load(&self, key: &str) -> hyperkitty_core::Result<Option<Vec<u8>>>;
    fn checkpoint(&mut self) -> hyperkitty_core::Result<hyperkitty_core::Hash>;
    fn verify_integrity(&self) -> hyperkitty_core::Result<bool>;
}