pub struct Connection<'app, 'local: 'app, 'd: 'local, I: Catalog = Empty> { /* private fields */ }Expand description
An exclusive database capability bound to its installed application scope.
Implementations§
Source§impl<'app, 'local: 'app, 'd: 'local, I: Catalog> Connection<'app, 'local, 'd, I>
impl<'app, 'local: 'app, 'd: 'local, I: Catalog> Connection<'app, 'local, 'd, I>
pub fn query(&mut self) -> Query<'_, 'local, 'd, I>
pub fn transaction( &mut self, ) -> impl Fiber<'d, Output = Result<Transaction<'_, 'local, 'd, I>, Error>> + use<'_, 'app, 'local, 'd, I>
Auto Trait Implementations§
impl<'app, 'local, 'd, I = Empty> !RefUnwindSafe for Connection<'app, 'local, 'd, I>
impl<'app, 'local, 'd, I = Empty> !Send for Connection<'app, 'local, 'd, I>
impl<'app, 'local, 'd, I = Empty> !Sync for Connection<'app, 'local, 'd, I>
impl<'app, 'local, 'd, I = Empty> !UnwindSafe for Connection<'app, 'local, 'd, I>
impl<'app, 'local, 'd, I> Freeze for Connection<'app, 'local, 'd, I>where
Lease<'app, 'local, 'd, I>: Freeze,
impl<'app, 'local, 'd, I> Unpin for Connection<'app, 'local, 'd, I>where
Lease<'app, 'local, 'd, I>: Unpin,
impl<'app, 'local, 'd, I> UnsafeUnpin for Connection<'app, 'local, 'd, I>where
Lease<'app, 'local, 'd, I>: UnsafeUnpin,
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