Struct rbatis::executor::RBatisTxExecutorGuard
source · pub struct RBatisTxExecutorGuard {
pub tx: Option<RBatisTxExecutor>,
pub callback: Box<dyn FnMut(RBatisTxExecutor) + Send + Sync>,
}
Fields§
§tx: Option<RBatisTxExecutor>
§callback: Box<dyn FnMut(RBatisTxExecutor) + Send + Sync>
Implementations§
source§impl RBatisTxExecutorGuard
impl RBatisTxExecutorGuard
pub async fn begin(&mut self) -> Result<()>
pub async fn commit(&mut self) -> Result<()>
pub async fn rollback(&mut self) -> Result<()>
pub fn take_conn(self) -> Option<Box<dyn Connection>>
pub async fn query_decode<T>(
&mut self,
sql: &str,
args: Vec<Value>,
) -> Result<T, Error>where
T: DeserializeOwned,
Trait Implementations§
source§impl Debug for RBatisTxExecutorGuard
impl Debug for RBatisTxExecutorGuard
source§impl Drop for RBatisTxExecutorGuard
impl Drop for RBatisTxExecutorGuard
source§impl Executor for RBatisTxExecutorGuard
impl Executor for RBatisTxExecutorGuard
Auto Trait Implementations§
impl !Freeze for RBatisTxExecutorGuard
impl !RefUnwindSafe for RBatisTxExecutorGuard
impl Send for RBatisTxExecutorGuard
impl Sync for RBatisTxExecutorGuard
impl Unpin for RBatisTxExecutorGuard
impl !UnwindSafe for RBatisTxExecutorGuard
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