Struct lease::AsyncLease
source · pub struct AsyncLease<T: Send + Sync + 'static> { /* private fields */ }
Expand description
Implements the core::future::Future
trait.
This is returned by the Pool::get()
method and will resolve once a Lease
is ready.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AsyncLease<T>
impl<T> Send for AsyncLease<T>
impl<T> Sync for AsyncLease<T>
impl<T> Unpin for AsyncLease<T>
impl<T> !UnwindSafe for AsyncLease<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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more