pub enum JournalMode {
Delete,
Truncate,
Persist,
Memory,
Wal,
Off,
}Expand description
The journal mode
set by Sqlite::journal_mode.
Variants§
Delete
Delete the rollback journal at the end of each transaction.
Truncate
Truncate the rollback journal to zero length instead of deleting it.
Persist
Overwrite the rollback journal header instead of deleting the file.
Memory
Keep the rollback journal in memory.
Wal
Use a write-ahead log.
Off
Disable the rollback journal.
Trait Implementations§
Source§impl Clone for JournalMode
impl Clone for JournalMode
Source§fn clone(&self) -> JournalMode
fn clone(&self) -> JournalMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JournalMode
Source§impl Debug for JournalMode
impl Debug for JournalMode
impl Eq for JournalMode
Source§impl From<JournalMode> for Cow<'static, str>
impl From<JournalMode> for Cow<'static, str>
Source§fn from(mode: JournalMode) -> Self
fn from(mode: JournalMode) -> Self
Converts to this type from the input type.
Source§impl Hash for JournalMode
impl Hash for JournalMode
Source§impl PartialEq for JournalMode
impl PartialEq for JournalMode
Source§fn eq(&self, other: &JournalMode) -> bool
fn eq(&self, other: &JournalMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JournalMode
Auto Trait Implementations§
impl Freeze for JournalMode
impl RefUnwindSafe for JournalMode
impl Send for JournalMode
impl Sync for JournalMode
impl Unpin for JournalMode
impl UnsafeUnpin for JournalMode
impl UnwindSafe for JournalMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.