pub struct PreparedCommand<'a, T, R>where
R: FromValue,{
pub phantom: PhantomData<R>,
pub executor: &'a mut T,
pub command: Command,
pub keep_command_for_result: bool,
pub post_process: Option<Box<dyn Fn(Value, Command, &'a mut dyn ClientTrait) -> Future<'a, R> + Send + Sync>>,
}
Fields§
§phantom: PhantomData<R>
§executor: &'a mut T
§command: Command
§keep_command_for_result: bool
§post_process: Option<Box<dyn Fn(Value, Command, &'a mut dyn ClientTrait) -> Future<'a, R> + Send + Sync>>
Implementations§
Source§impl<'a, T, R> PreparedCommand<'a, T, R>where
R: FromValue,
impl<'a, T, R> PreparedCommand<'a, T, R>where
R: FromValue,
Trait Implementations§
Source§impl<'a, R> ClientPreparedCommand<'a, R> for PreparedCommand<'a, Client, R>
impl<'a, R> ClientPreparedCommand<'a, R> for PreparedCommand<'a, Client, R>
Source§impl<'a, R> ClientPreparedCommand<'a, R> for PreparedCommand<'a, InnerClient, R>
impl<'a, R> ClientPreparedCommand<'a, R> for PreparedCommand<'a, InnerClient, R>
Source§impl<'a, R> IntoFuture for PreparedCommand<'a, Client, R>
impl<'a, R> IntoFuture for PreparedCommand<'a, Client, R>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a, R> IntoFuture for PreparedCommand<'a, InnerClient, R>
impl<'a, R> IntoFuture for PreparedCommand<'a, InnerClient, R>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a, R> IntoFuture for PreparedCommand<'a, MultiplexedClient, R>
impl<'a, R> IntoFuture for PreparedCommand<'a, MultiplexedClient, R>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a, R> IntoFuture for PreparedCommand<'a, StandaloneConnection, R>
impl<'a, R> IntoFuture for PreparedCommand<'a, StandaloneConnection, R>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a, R> MultiplexedPreparedCommand<'a, R> for PreparedCommand<'a, MultiplexedClient, R>
impl<'a, R> MultiplexedPreparedCommand<'a, R> for PreparedCommand<'a, MultiplexedClient, R>
Source§impl<'a, R> PipelinePreparedCommand<'a, R> for PreparedCommand<'a, Pipeline, R>
impl<'a, R> PipelinePreparedCommand<'a, R> for PreparedCommand<'a, Pipeline, R>
Source§impl<'a, R> PipelinePreparedCommand<'a, R> for PreparedCommand<'a, Transaction, R>
impl<'a, R> PipelinePreparedCommand<'a, R> for PreparedCommand<'a, Transaction, R>
Auto Trait Implementations§
impl<'a, T, R> Freeze for PreparedCommand<'a, T, R>
impl<'a, T, R> !RefUnwindSafe for PreparedCommand<'a, T, R>
impl<'a, T, R> Send for PreparedCommand<'a, T, R>
impl<'a, T, R> Sync for PreparedCommand<'a, T, R>
impl<'a, T, R> Unpin for PreparedCommand<'a, T, R>where
R: Unpin,
impl<'a, T, R> !UnwindSafe for PreparedCommand<'a, T, R>
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