pub struct Database {
storage: Storage,
}
Fields§
§storage: Storage
Implementations§
source§impl Database
impl Database
sourcepub unsafe fn open(path: &Path) -> Result<Database, Error>
pub unsafe fn open(path: &Path) -> Result<Database, Error>
Opens the specified file as a radarbase database (radb).
- if the file does not exist, or is an empty file, a new database will be initialized in it
- if the file is a valid redb database, it will be opened
- otherwise this function will return an error
pub fn open_table<K: RadbKey + ?Sized>( &self, name: &[u8] ) -> Result<Table<'_, K>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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