pub enum JournalMode {
Delete,
Truncate,
Persist,
Memory,
Wal,
Off,
}Expand description
Journal mode for the database connection.
Variants§
Delete
Delete the rollback journal after each transaction.
Truncate
Truncate the rollback journal to zero length.
Persist
Persist the rollback journal (don’t delete, just zero the header).
Memory
Store rollback journal in memory only.
Wal
Write-ahead logging.
Off
Completely 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JournalMode
impl Debug for JournalMode
Source§impl Default for JournalMode
impl Default for JournalMode
Source§fn default() -> JournalMode
fn default() -> JournalMode
Returns the “default value” for a type. Read more
Source§impl Hash for JournalMode
impl Hash for JournalMode
Source§impl PartialEq for JournalMode
impl PartialEq for JournalMode
impl Copy for JournalMode
impl Eq for JournalMode
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).