#[repr(i32)]pub enum DbAction {
CreateOrOpen = 0,
CreateOrOverwrite = 1,
Create = 2,
Open = 3,
}
Expand description
A flag indicating how to handle the database already existing (or not)
Variants§
CreateOrOpen = 0
Open the database if it exists, create it otherwise
CreateOrOverwrite = 1
Overwrite the database if it exists, create it otherwise
Create = 2
Create a new database
Open = 3
Open an existing database
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbAction
impl RefUnwindSafe for DbAction
impl Send for DbAction
impl Sync for DbAction
impl Unpin for DbAction
impl UnwindSafe for DbAction
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