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,
) -> Pin<Box<dyn Future<Output = Result<<OdbcConnectOptions as ConnectOptions>::Connection, Error>> + Send + '_>>
fn connect( &self, ) -> Pin<Box<dyn Future<Output = Result<<OdbcConnectOptions as ConnectOptions>::Connection, Error>> + Send + '_>>
Establish a new database connection with the options specified by
self.Sourceยงfn log_statements(&mut self, level: LevelFilter) -> &mut OdbcConnectOptions
fn log_statements(&mut self, level: LevelFilter) -> &mut OdbcConnectOptions
Log executed statements with the specified
levelSourceยงfn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration,
) -> &mut OdbcConnectOptions
fn log_slow_statements( &mut self, level: LevelFilter, duration: Duration, ) -> &mut OdbcConnectOptions
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) -> AnyConnectOptions
fn from(options: OdbcConnectOptions) -> AnyConnectOptions
Converts to this type from the input type.
Sourceยงimpl FromStr for OdbcConnectOptions
impl FromStr for OdbcConnectOptions
Sourceยงimpl TryFrom<AnyConnectOptions> for OdbcConnectOptions
impl TryFrom<AnyConnectOptions> for OdbcConnectOptions
Sourceยงfn try_from(
value: AnyConnectOptions,
) -> Result<OdbcConnectOptions, <OdbcConnectOptions as TryFrom<AnyConnectOptions>>::Error>
fn try_from( value: AnyConnectOptions, ) -> Result<OdbcConnectOptions, <OdbcConnectOptions as TryFrom<AnyConnectOptions>>::Error>
Performs the conversion.
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