pub trait ConnectOptions: 'static + Send + Sync + FromStr<Err = Error> + Debug + Clone {
    type Connection: Connection + ?Sized;

    fn connect(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error>> + Send, Global>>
    where
        Self::Connection: Sized
; fn log_statements(&mut self, level: LevelFilter) -> &mut Self; fn log_slow_statements(
        &mut self,
        level: LevelFilter,
        duration: Duration
    ) -> &mut Self; fn disable_statement_logging(&mut self) -> &mut Self { ... } }

Required Associated Types

Required Methods

Establish a new database connection with the options specified by self.

Log executed statements with the specified level

Log executed statements with a duration above the specified duration at the specified level.

Provided Methods

Entirely disables statement logging (both slow and regular).

Implementors