Struct bitrust::BitRust [−][src]
pub struct BitRust<ClockT> { pub state: BitRustState<ClockT>, pub running: Arc<AtomicBool>, }
Fields
state: BitRustState<ClockT>
running: Arc<AtomicBool>
Implementations
impl<ClockT> BitRust<ClockT> where
ClockT: LogicalClock + Send + Sync + 'static,
[src]
impl<ClockT> BitRust<ClockT> where
ClockT: LogicalClock + Send + Sync + 'static,
[src]pub fn open(config: Config, clock: ClockT) -> Result<BitRust<ClockT>>
[src]
pub fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
[src]
pub fn put(&self, key: Vec<u8>, value: Vec<u8>) -> Result<()>
[src]
pub fn delete(&self, key: &[u8]) -> Result<()>
[src]
pub fn keys<'a>(&'a self) -> Vec<Vec<u8>>
[src]
pub fn merge(&self) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl<ClockT> !RefUnwindSafe for BitRust<ClockT>
impl<ClockT> Send for BitRust<ClockT> where
ClockT: Send,
ClockT: Send,
impl<ClockT> Sync for BitRust<ClockT> where
ClockT: Send,
ClockT: Send,