Struct lease::LockedPool
source · pub struct LockedPool<T: Send + Sync + 'static> { /* private fields */ }
Expand description
Implementations§
source§impl<T: Send + Sync + 'static> LockedPool<T>
impl<T: Send + Sync + 'static> LockedPool<T>
sourcepub fn try_into_pool(
self
) -> Result<Pool<T>, (LockedPool<T>, PoolConversionError)>
pub fn try_into_pool( self ) -> Result<Pool<T>, (LockedPool<T>, PoolConversionError)>
Turns this Pool
into a LockedPool
§Errors
Will return an error if there are other copies of this LockedPool
Trait Implementations§
source§impl<T: Clone + Send + Sync + 'static> Clone for LockedPool<T>
impl<T: Clone + Send + Sync + 'static> Clone for LockedPool<T>
source§fn clone(&self) -> LockedPool<T>
fn clone(&self) -> LockedPool<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for LockedPool<T>
impl<T> Send for LockedPool<T>
impl<T> Sync for LockedPool<T>
impl<T> Unpin for LockedPool<T>
impl<T> !UnwindSafe for LockedPool<T>
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