pub enum StatementCacheFuture<'c> {
Cached(Arc<Statement>),
Prepared(Pin<Box<dyn Future<Output = Result<Arc<Statement>, Error>> + Send + 'c>>),
Done,
}
Variants§
Cached(Arc<Statement>)
Prepared(Pin<Box<dyn Future<Output = Result<Arc<Statement>, Error>> + Send + 'c>>)
Done
Trait Implementations§
Source§impl Future for StatementCacheFuture<'_>
impl Future for StatementCacheFuture<'_>
Auto Trait Implementations§
impl<'c> Freeze for StatementCacheFuture<'c>
impl<'c> !RefUnwindSafe for StatementCacheFuture<'c>
impl<'c> Send for StatementCacheFuture<'c>
impl<'c> !Sync for StatementCacheFuture<'c>
impl<'c> Unpin for StatementCacheFuture<'c>
impl<'c> !UnwindSafe for StatementCacheFuture<'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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§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