pub struct SessionPool { /* private fields */ }Expand description
Reuses a single underlying session across typed views.
Implementations§
Source§impl SessionPool
impl SessionPool
pub fn new(session: InstrumentSession) -> SessionPool
pub fn session(&self) -> Arc<Mutex<InstrumentSession>> ⓘ
pub fn open_session(&self) -> Result<PooledSession, Error>
Auto Trait Implementations§
impl Freeze for SessionPool
impl RefUnwindSafe for SessionPool
impl Send for SessionPool
impl Sync for SessionPool
impl Unpin for SessionPool
impl UnsafeUnpin for SessionPool
impl UnwindSafe for SessionPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more