pub struct CollectionOptions { /* private fields */ }Expand description
Options for creating or opening a collection.
Implementations§
Source§impl CollectionOptions
impl CollectionOptions
Sourcepub fn set_enable_mmap(&mut self, enable: bool) -> Result<()>
pub fn set_enable_mmap(&mut self, enable: bool) -> Result<()>
Sets whether to enable memory mapping.
Sourcepub fn enable_mmap(&self) -> bool
pub fn enable_mmap(&self) -> bool
Returns whether memory mapping is enabled.
Sourcepub fn set_max_buffer_size(&mut self, size: u64) -> Result<()>
pub fn set_max_buffer_size(&mut self, size: u64) -> Result<()>
Sets the maximum buffer size in bytes.
Sourcepub fn max_buffer_size(&self) -> u64
pub fn max_buffer_size(&self) -> u64
Returns the maximum buffer size in bytes.
Sourcepub fn set_read_only(&mut self, read_only: bool) -> Result<()>
pub fn set_read_only(&mut self, read_only: bool) -> Result<()>
Sets whether the collection is read-only.
Trait Implementations§
Source§impl Drop for CollectionOptions
impl Drop for CollectionOptions
Auto Trait Implementations§
impl !Send for CollectionOptions
impl !Sync for CollectionOptions
impl Freeze for CollectionOptions
impl RefUnwindSafe for CollectionOptions
impl Unpin for CollectionOptions
impl UnsafeUnpin for CollectionOptions
impl UnwindSafe for CollectionOptions
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