pub enum Synchronous {
Off,
Normal,
Full,
Extra,
}Expand description
How often SQLite syncs the database to the storage device.
See PRAGMA synchronous to learn more.
Variants§
Off
SQLite never syncs. A crash of the operating system can corrupt the database.
Normal
SQLite syncs at the most critical moments. In WAL mode, that is one
fsync per checkpoint.
Full
SQLite syncs at every transaction. In WAL mode, that is one fsync of
the WAL file per commit. This is the default of SQLite.
Extra
Like Synchronous::Full, plus one fsync of the directory when a
rollback journal is deleted. This has no effect in WAL mode.
Trait Implementations§
Source§impl Clone for Synchronous
impl Clone for Synchronous
Source§fn clone(&self) -> Synchronous
fn clone(&self) -> Synchronous
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 Synchronous
Source§impl Debug for Synchronous
impl Debug for Synchronous
Source§impl Default for Synchronous
impl Default for Synchronous
Source§fn default() -> Synchronous
fn default() -> Synchronous
Returns the “default value” for a type. Read more
impl Eq for Synchronous
Source§impl PartialEq for Synchronous
impl PartialEq for Synchronous
impl StructuralPartialEq for Synchronous
Auto Trait Implementations§
impl Freeze for Synchronous
impl RefUnwindSafe for Synchronous
impl Send for Synchronous
impl Sync for Synchronous
impl Unpin for Synchronous
impl UnsafeUnpin for Synchronous
impl UnwindSafe for Synchronous
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more