pub struct OpenFlags(/* private fields */);
Expand description
Flags for opening a connection.
Implementations§
source§impl OpenFlags
impl OpenFlags
sourcepub fn with_create(self) -> Self
pub fn with_create(self) -> Self
Create the database if it does not already exist.
sourcepub fn with_full_mutex(self) -> Self
pub fn with_full_mutex(self) -> Self
Open the database in the serialized threading mode.
sourcepub fn with_no_mutex(self) -> Self
pub fn with_no_mutex(self) -> Self
Opens the database in the multi-thread threading mode.
sourcepub fn with_read_only(self) -> Self
pub fn with_read_only(self) -> Self
Open the database for reading only.
sourcepub fn with_read_write(self) -> Self
pub fn with_read_write(self) -> Self
Open the database for reading and writing.
Trait Implementations§
impl Copy for OpenFlags
Auto Trait Implementations§
impl Freeze for OpenFlags
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin for OpenFlags
impl UnwindSafe for OpenFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)