Skip to main content

OpenFlag

Struct OpenFlag 

Source
pub struct OpenFlag(/* private fields */);
Expand description

Implementations§

Source§

impl OpenFlag

Source

pub const OPEN_READONLY: Self

The database is opened in read-only mode. If the database does not already exist, an error is returned.

Source

pub const OPEN_READWRITE: Self

The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system.

Source

pub const OPEN_READWRITE_CREATE: Self

The database is opened for reading and writing, and is created if it does not already exist.

Source

pub const OPEN_URI: Self

The filename can be interpreted as a URI if this flag is set.

Source

pub const OPEN_MEMORY: Self

The database will be opened as an in-memory database.

The database is named by the “filename” argument for the purposes of cache-sharing, if shared cache mode is enabled, but the “filename” is otherwise ignored.

Source

pub const OPEN_NOMUTEX: Self

The new database connection will use the “multi-thread” threading mode.

This means that separate threads are allowed to use SQLite at the same time, as long as each thread is using a different database connection.

Source

pub const OPEN_FULLMUTEX: Self

The new database connection will use the “serialized” threading mode.

This means the multiple threads can safely attempt to use the same database connection at the same time.

(Mutexes will block any actual concurrency, but in this mode there is no harm in trying.)

Source

pub const OPEN_SHAREDCACHE: Self

The database is opened shared cache enabled, overriding the default shared cache setting provided by sqlite3_enable_shared_cache().

The use of shared cache mode is discouraged and hence shared cache capabilities may be omitted from many builds of SQLite. In such cases, this option is a no-op.

Source

pub const OPEN_PRIVATECACHE: Self

The database is opened shared cache disabled, overriding the default shared cache setting provided by sqlite3_enable_shared_cache().

Trait Implementations§

Source§

impl BitOr for OpenFlag

Source§

type Output = OpenFlag

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl Clone for OpenFlag

Source§

fn clone(&self) -> OpenFlag

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OpenFlag

Source§

impl Default for OpenFlag

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.