pub trait Driver: Sync + Send {
// Required method
fn connect(
&self,
url: &str,
) -> Result<Rc<RefCell<dyn Connection + 'static>>>;
}Expand description
Represents database driver that can be shared between threads, and can therefore implement a connection pool
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".