pub struct OdbcConnectOptions { /* private fields */ }
Available on crate feature
odbc
only.Implementations§
Source§impl OdbcConnectOptions
impl OdbcConnectOptions
pub fn connection_string(&self) -> &str
Trait Implementations§
Source§impl Clone for OdbcConnectOptions
impl Clone for OdbcConnectOptions
Source§fn clone(&self) -> OdbcConnectOptions
fn clone(&self) -> OdbcConnectOptions
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 OdbcConnectOptions
impl ConnectOptions for OdbcConnectOptions
type Connection = OdbcConnection
Source§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(&mut self, level: LevelFilter) -> &mut Self
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
Log executed statements with the specified
level
Source§fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration,
) -> &mut Self
fn log_slow_statements( &mut self, level: LevelFilter, duration: Duration, ) -> &mut Self
Log executed statements with a duration above the specified
duration
at the specified level
.Source§fn disable_statement_logging(&mut self) -> &mut Self
fn disable_statement_logging(&mut self) -> &mut Self
Entirely disables statement logging (both slow and regular).
Source§impl Debug for OdbcConnectOptions
impl Debug for OdbcConnectOptions
Source§impl From<OdbcConnectOptions> for AnyConnectOptions
impl From<OdbcConnectOptions> for AnyConnectOptions
Source§fn from(options: OdbcConnectOptions) -> Self
fn from(options: OdbcConnectOptions) -> Self
Converts to this type from the input type.
Source§impl FromStr for OdbcConnectOptions
impl FromStr for OdbcConnectOptions
Auto Trait Implementations§
impl Freeze for OdbcConnectOptions
impl RefUnwindSafe for OdbcConnectOptions
impl Send for OdbcConnectOptions
impl Sync for OdbcConnectOptions
impl Unpin for OdbcConnectOptions
impl UnwindSafe for OdbcConnectOptions
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> 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