pub struct HiveMind {
pub sled: Db,
}
Fields§
§sled: Db
Implementations§
Source§impl HiveMind
impl HiveMind
pub fn new(sled: Db) -> Self
pub fn get<T, N>(&self, name: N) -> Result<T, HiveError>
pub fn set<T, N>(&self, name: N, value: &T) -> Result<(), HiveError>
pub fn set_bytes<N>(&self, name: N, value: &[u8]) -> Result<(), HiveError>
pub fn iter<T: HiveBoxable>(&self) -> impl Iterator<Item = T>
pub fn iter_with_keys<T: HiveBoxable>( &self, ) -> impl Iterator<Item = (Vec<u8>, T)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HiveMind
impl !RefUnwindSafe for HiveMind
impl Send for HiveMind
impl Sync for HiveMind
impl Unpin for HiveMind
impl !UnwindSafe for HiveMind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more