pub struct OpenFlags(_);
Expand description
Flags for opening a database connection.
Implementations
sourceimpl OpenFlags
impl OpenFlags
sourcepub fn set_create(self) -> Self
pub fn set_create(self) -> Self
Create the database if it does not already exist.
sourcepub fn set_full_mutex(self) -> Self
pub fn set_full_mutex(self) -> Self
Open the database in the serialized threading mode.
sourcepub fn set_no_mutex(self) -> Self
pub fn set_no_mutex(self) -> Self
Opens the database in the multi-thread threading mode.
sourcepub fn set_read_only(self) -> Self
pub fn set_read_only(self) -> Self
Open the database for reading only.
sourcepub fn set_read_write(self) -> Self
pub fn set_read_write(self) -> Self
Open the database for reading and writing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin for OpenFlags
impl UnwindSafe for OpenFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more