Trait Transaction

Source
pub trait Transaction {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn execute<'a, T: Iterator<Item = &'a str>>(
        &mut self,
        queries: T,
    ) -> Result<usize, Self::Error>;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn execute<'a, T: Iterator<Item = &'a str>>( &mut self, queries: T, ) -> Result<usize, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Transaction for PooledConn

Source§

type Error = Error

Source§

fn execute<'a, T: Iterator<Item = &'a str>>( &mut self, queries: T, ) -> Result<usize, Self::Error>

Source§

impl Transaction for Conn

Source§

type Error = Error

Source§

fn execute<'a, T: Iterator<Item = &'a str>>( &mut self, queries: T, ) -> Result<usize, Self::Error>

Source§

impl Transaction for Client

Source§

type Error = Error

Source§

fn execute<'a, T: Iterator<Item = &'a str>>( &mut self, queries: T, ) -> Result<usize, Self::Error>

Source§

impl Transaction for Connection

Source§

type Error = Error

Source§

fn execute<'a, T: Iterator<Item = &'a str>>( &mut self, queries: T, ) -> Result<usize, Self::Error>

Implementors§