Trait ToConnection

Source
pub trait ToConnection<'a, 't: 'a>: Send {
    // Required method
    fn to_connection(self) -> ToConnectionResult<'a, 't>;
}
Expand description

Everything that can be given in exchange to a connection.

Note that you could obtain a 'static connection by giving away Conn or Pool.

Required Methods§

Source

fn to_connection(self) -> ToConnectionResult<'a, 't>

Converts self to a connection.

Implementors§

Source§

impl ToConnection<'static, 'static> for Pool

Source§

impl<'a> ToConnection<'a, 'static> for &'a Pool

Source§

impl<'a, 't: 'a, T: Into<Connection<'a, 't>> + Send> ToConnection<'a, 't> for T