pub struct Lease<B: Backend, P: Policy, C: Connection> { /* private fields */ }Expand description
Exclusive client ownership. A cancelled query makes reusable() false; release then destroys the connection instead of handing wire state to another caller.
Trait Implementations§
Auto Trait Implementations§
impl<B, P, C> !RefUnwindSafe for Lease<B, P, C>
impl<B, P, C> !Send for Lease<B, P, C>
impl<B, P, C> !Sync for Lease<B, P, C>
impl<B, P, C> !UnwindSafe for Lease<B, P, C>
impl<B, P, C> Forget for Lease<B, P, C>
impl<B, P, C> Freeze for Lease<B, P, C>
impl<B, P, C> Unpin for Lease<B, P, C>
impl<B, P, C> UnsafeUnpin for Lease<B, P, C>
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