pub struct Connection { /* private fields */ }
Implementations§
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
pub async fn prepare_statement( &mut self, stmt: &str, ) -> Result<PreparedStatement<'_>, Error>
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
pub fn data(&self) -> &ConnectionData
pub fn options(&self) -> Arc<dyn ConnectionOptionsTrait>
Trait Implementations§
Source§impl<T: Stream> AsyncPoolContent<T> for Connection
impl<T: Stream> AsyncPoolContent<T> for Connection
Source§impl AsyncPoolContentError for Connection
impl AsyncPoolContentError for Connection
Auto Trait Implementations§
impl Freeze for Connection
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