pub struct RuntimeOptions {
pub mode: RuntimeMode,
}Expand description
Runtime configuration for a database handle.
Fields§
§mode: RuntimeModeSelected runtime strategy.
Implementations§
Source§impl RuntimeOptions
impl RuntimeOptions
Sourcepub const fn native_threads() -> Self
pub const fn native_threads() -> Self
Uses native threads for background work and blocking adapters.
Sourcepub const fn platform_io() -> Self
pub const fn platform_io() -> Self
Requests platform async I/O support when available.
Sourcepub const fn capabilities(self) -> RuntimeCapabilities
pub const fn capabilities(self) -> RuntimeCapabilities
Returns the capabilities implied by these runtime options.
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
Source§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
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 RuntimeOptions
Source§impl Debug for RuntimeOptions
impl Debug for RuntimeOptions
Source§impl Default for RuntimeOptions
impl Default for RuntimeOptions
impl Eq for RuntimeOptions
Source§impl PartialEq for RuntimeOptions
impl PartialEq for RuntimeOptions
Source§fn eq(&self, other: &RuntimeOptions) -> bool
fn eq(&self, other: &RuntimeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeOptions
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
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