pub enum BatchTarget<'a> {
Connection(&'a mut MiddlewarePoolConnection),
PostgresTx(&'a Tx<'a>),
}Expand description
Target for batch execution (connection or transaction).
Variants§
Connection(&'a mut MiddlewarePoolConnection)
PostgresTx(&'a Tx<'a>)
Trait Implementations§
Source§impl<'a> From<&'a Tx<'a>> for BatchTarget<'a>
Available on crate feature postgres only.
impl<'a> From<&'a Tx<'a>> for BatchTarget<'a>
Available on crate feature
postgres only.Source§impl<'a> From<&'a mut MiddlewarePoolConnection> for BatchTarget<'a>
impl<'a> From<&'a mut MiddlewarePoolConnection> for BatchTarget<'a>
Source§fn from(conn: &'a mut MiddlewarePoolConnection) -> Self
fn from(conn: &'a mut MiddlewarePoolConnection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for BatchTarget<'a>
impl<'a> !RefUnwindSafe for BatchTarget<'a>
impl<'a> Send for BatchTarget<'a>
impl<'a> Sync for BatchTarget<'a>
impl<'a> Unpin for BatchTarget<'a>
impl<'a> !UnwindSafe for BatchTarget<'a>
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