pub trait QueryAble {
// Required method
fn query<'life0, 'life1, 'async_trait, T>(
&'life0 self,
conn: &'life1 mut Connection,
) -> Pin<Box<dyn Future<Output = Result<T, RedisError>> + Send + 'async_trait>>
where T: 'async_trait + FromRedisValue,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A trait that allow to have a single CiseauxSingle query, and not a query_x per redis commands types (redis::Cmd and redis::Pipeline). Implemented for redis::Cmd and redis::Pipeline (including &, and &mut)
Required Methods§
fn query<'life0, 'life1, 'async_trait, T>(
&'life0 self,
conn: &'life1 mut Connection,
) -> Pin<Box<dyn Future<Output = Result<T, RedisError>> + Send + 'async_trait>>where
T: 'async_trait + FromRedisValue,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.