pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
Sourcepub fn set_cache_size(&mut self, bytes: usize) -> &mut Self
pub fn set_cache_size(&mut self, bytes: usize) -> &mut Self
Similar to redb::Builder::set_cache_size().
Sourcepub fn create<'a>(
&self,
models: &'a Models,
path: impl AsRef<Path>,
) -> Result<Database<'a>>
pub fn create<'a>( &self, models: &'a Models, path: impl AsRef<Path>, ) -> Result<Database<'a>>
Creates a new Db instance using the given path.
Similar to redb::Builder.create(…)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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