pub struct Checkout<S = SnowflakeSession> { /* private fields */ }Expand description
A session checked out of a pool.
Return it with SessionPool::checkin or drop it with
SessionPool::discard. If it is dropped without either (a panic or early
return between checkout and checkin), its Drop guard removes the orphaned
slot so the member doesn’t linger as phantom-busy.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S = SnowflakeSession> !RefUnwindSafe for Checkout<S>
impl<S = SnowflakeSession> !UnwindSafe for Checkout<S>
impl<S> Freeze for Checkout<S>where
S: Freeze,
impl<S> Send for Checkout<S>where
S: Send,
impl<S> Sync for Checkout<S>
impl<S> Unpin for Checkout<S>where
S: Unpin,
impl<S> UnsafeUnpin for Checkout<S>where
S: UnsafeUnpin,
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