pub trait CommandExecutor: Send + Sync {
// Required method
fn execute_command<'life0, 'async_trait>(
&'life0 self,
cmd: Cmd,
route: Option<Route>,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
The low-level command execution interface.
Implementors forward a fully-built Cmd to glide-core and return the
decoded ValkeyValue reply.
Required Methods§
Sourcefn execute_command<'life0, 'async_trait>(
&'life0 self,
cmd: Cmd,
route: Option<Route>,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_command<'life0, 'async_trait>(
&'life0 self,
cmd: Cmd,
route: Option<Route>,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute cmd, optionally routed to a specific node/set of nodes (cluster).
Standalone implementations ignore route.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".