Struct sqlx_migrate::context::MigrationContext
source · [−]pub struct MigrationContext<'c, Db>where
Db: Database,{ /* private fields */ }
Implementations
sourceimpl<'c, Db> MigrationContext<'c, Db>where
Db: Database,
impl<'c, Db> MigrationContext<'c, Db>where
Db: Database,
sourcepub fn tx<'s, 't>(&'t mut self) -> impl Executor<'c, Database = Db> + 's + 'twhere
's: 't,
&'s mut Transaction<'c, Db>: Executor<'c, Database = Db> + 's,
pub fn tx<'s, 't>(&'t mut self) -> impl Executor<'c, Database = Db> + 's + 'twhere
's: 't,
&'s mut Transaction<'c, Db>: Executor<'c, Database = Db> + 's,
Calling this function will reborrow the context allowing it to be used multiple times.
This is no different than std::borrow::BorrowMut
,
but without needing to import the trait.
Trait Implementations
Auto Trait Implementations
impl<'c, Db> !RefUnwindSafe for MigrationContext<'c, Db>
impl<'c, Db> !Send for MigrationContext<'c, Db>
impl<'c, Db> !Sync for MigrationContext<'c, Db>
impl<'c, Db> Unpin for MigrationContext<'c, Db>
impl<'c, Db> !UnwindSafe for MigrationContext<'c, Db>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more