Struct mariadb::service_sql::Connection
source · pub struct Connection { /* private fields */ }
Expand description
A connection to a local or remote SQL server
Implementations§
source§impl Connection
impl Connection
sourcepub fn connect_local() -> ClientResult<Self>
pub fn connect_local() -> ClientResult<Self>
sourcepub fn connect(&mut self, conn_opts: &ConnectionOpts) -> ClientResult<Self>
pub fn connect(&mut self, conn_opts: &ConnectionOpts) -> ClientResult<Self>
Connect to a remote server
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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