pub struct RXQLiteConnectOptions { /* private fields */ }
Implementations§
Source§impl RXQLiteConnectOptions
impl RXQLiteConnectOptions
pub fn node_id(self, node_id: u64) -> Self
pub fn host(self, host: &str) -> Self
pub fn port(self, port: u16) -> Self
pub fn use_ssl(self, use_ssl: bool) -> Self
pub fn use_insecure_ssl(self, use_insecure_ssl: bool) -> Self
pub fn add_cert_path(self, cert_path: String) -> Self
pub fn tls_config(self, tls_config: Option<RSQliteClientTlsConfig>) -> Self
Trait Implementations§
Source§impl Clone for RXQLiteConnectOptions
impl Clone for RXQLiteConnectOptions
Source§fn clone(&self) -> RXQLiteConnectOptions
fn clone(&self) -> RXQLiteConnectOptions
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 ConnectOptions for RXQLiteConnectOptions
impl ConnectOptions for RXQLiteConnectOptions
type Connection = RXQLiteConnection
Source§fn to_url_lossy(&self) -> Url
fn to_url_lossy(&self) -> Url
Get a connection URL that may be used to connect to the same database as this
ConnectOptions
. Read moreSource§fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where
Self::Connection: Sized,
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where
Self::Connection: Sized,
Establish a new database connection with the options specified by
self
.Source§fn log_statements(self, _level: LevelFilter) -> Self
fn log_statements(self, _level: LevelFilter) -> Self
Log executed statements with the specified
level
Source§fn log_slow_statements(self, _level: LevelFilter, _duration: Duration) -> Self
fn log_slow_statements(self, _level: LevelFilter, _duration: Duration) -> Self
Log executed statements with a duration above the specified
duration
at the specified level
.Source§fn disable_statement_logging(self) -> Self
fn disable_statement_logging(self) -> Self
Entirely disables statement logging (both slow and regular).
Source§impl Debug for RXQLiteConnectOptions
impl Debug for RXQLiteConnectOptions
Source§impl Default for RXQLiteConnectOptions
impl Default for RXQLiteConnectOptions
Source§fn default() -> RXQLiteConnectOptions
fn default() -> RXQLiteConnectOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RXQLiteConnectOptions
impl RefUnwindSafe for RXQLiteConnectOptions
impl Send for RXQLiteConnectOptions
impl Sync for RXQLiteConnectOptions
impl Unpin for RXQLiteConnectOptions
impl UnwindSafe for RXQLiteConnectOptions
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: 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