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§
Sourcefn to_connection(self) -> ToConnectionResult<'a, 't>
fn to_connection(self) -> ToConnectionResult<'a, 't>
Converts self to a connection.