Function tx_sync

Source
pub fn tx_sync<T, M, E, I, S, F>(
    pool: &Pool<M>,
    savepoint: S,
    f: F,
) -> Result<T, Error<E>>
where M: MakeTlsConnect<Socket> + Clone + 'static + Sync + Send, M::TlsConnect: Send, M::Stream: Send, <M::TlsConnect as TlsConnect<Socket>>::Future: Send, I: Into<Error<E>>, S: AsRef<str>, F: FnMut(&mut Transaction<'_>) -> Result<T, I>,
Expand description

Executes the closure which is retried for serialization failures.

ยงErrors

Will return Err if there are any database errors or if the retry closure returns Err.