Type Alias SharedConnection

Source
pub type SharedConnection<'env> = Arc<Mutex<Connection<'env>>>;
Expand description

A convinient type alias in case you want to use a connection from multiple threads which share ownership of it.

Aliased Type§

pub struct SharedConnection<'env> { /* private fields */ }

Trait Implementations§

Source§

impl StatementParent for SharedConnection<'_>

§Safety:

Connection is guaranteed to be alive and in connected state for the lifetime of SharedConnection.