pub struct MysqlDriver {}
Trait Implementations§
Source§impl Debug for MysqlDriver
impl Debug for MysqlDriver
Source§impl Driver for MysqlDriver
impl Driver for MysqlDriver
fn name(&self) -> &str
Source§fn connect(
&self,
url: &str,
) -> BoxFuture<'_, Result<Box<dyn Connection>, Error>>
fn connect( &self, url: &str, ) -> BoxFuture<'_, Result<Box<dyn Connection>, Error>>
Create a connection to the database. Note that connections are intended to be used
in a single thread since most database connections are not thread-safe
fn connect_opt<'a>( &'a self, opt: &'a dyn ConnectOptions, ) -> BoxFuture<'a, Result<Box<dyn Connection>, Error>>
Source§fn default_option(&self) -> Box<dyn ConnectOptions>
fn default_option(&self) -> Box<dyn ConnectOptions>
make an default option
Source§impl Placeholder for MysqlDriver
impl Placeholder for MysqlDriver
Auto Trait Implementations§
impl Freeze for MysqlDriver
impl RefUnwindSafe for MysqlDriver
impl Send for MysqlDriver
impl Sync for MysqlDriver
impl Unpin for MysqlDriver
impl UnwindSafe for MysqlDriver
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> 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