pub struct BoltOptions { /* private fields */ }
Expand description
Database options
Implementations§
Source§impl BoltOptions
impl BoltOptions
Sourcepub fn builder() -> BoltOptionsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> BoltOptionsBuilder<((), (), (), (), (), (), ())>
Create a builder for building BoltOptions
.
On the builder, call .preload_freelist(...)
(optional), .initial_mmap_size(...)
(optional), .page_size(...)
(optional), .no_sync(...)
(optional), .mlock(...)
(optional), .max_batch_size(...)
(optional), .max_batch_delay(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of BoltOptions
.
Source§impl BoltOptions
impl BoltOptions
Sourcepub fn open<T: AsRef<Path>>(self, path: T) -> Result<Bolt>
pub fn open<T: AsRef<Path>>(self, path: T) -> Result<Bolt>
Open creates and opens a database at the given path. If the file does not exist then it will be created automatically.
Trait Implementations§
Source§impl Clone for BoltOptions
impl Clone for BoltOptions
Source§fn clone(&self) -> BoltOptions
fn clone(&self) -> BoltOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BoltOptions
impl Debug for BoltOptions
Source§impl Default for BoltOptions
impl Default for BoltOptions
Source§fn default() -> BoltOptions
fn default() -> BoltOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for BoltOptions
impl PartialEq for BoltOptions
impl Eq for BoltOptions
impl StructuralPartialEq for BoltOptions
Auto Trait Implementations§
impl Freeze for BoltOptions
impl RefUnwindSafe for BoltOptions
impl Send for BoltOptions
impl Sync for BoltOptions
impl Unpin for BoltOptions
impl UnwindSafe for BoltOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more